Fixing #property? support for boolean and TrueClass
This commit is contained in:
parent
81168bdd79
commit
3fa8c4b215
3 changed files with 15 additions and 1 deletions
|
@ -598,7 +598,20 @@ describe "ExtendedDocument properties" do
|
|||
@course['active'].should equal(value)
|
||||
end
|
||||
end
|
||||
|
||||
it "should respond to requests with ? modifier" do
|
||||
@course.active = 'false'
|
||||
@course.active?.should be_false
|
||||
end
|
||||
end
|
||||
|
||||
describe 'when type primitive is a TrueClass' do
|
||||
it "should respond to requests with ? modifier" do
|
||||
@course.very_active = 'true'
|
||||
@course.very_active?.should be_true
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue