Skip to content

Commit

Permalink
Niranjan - Commiting a failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
achamian committed Jun 6, 2009
1 parent 680b0ac commit b1c60b8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/wrest/components/attributes_container_spec.rb
Expand Up @@ -179,6 +179,16 @@ def method_missing(method_name, *args)
@li_piao.id = 6
@li_piao.id.should == 6
end

it "should provide getter and query methods to instance which has corresponding attribute" do
zotoh_zhaan = HumanBeing.new(:species => "Delvian")
zotoh_zhaan.species.should == "Delvian"
zotoh_zhaan.species?.should be_true
zotoh_zhaan.species = "Human"
lambda{@li_piao.species}.should raise_error(NoMethodError)
lambda{@li_piao.species?}.should raise_error(NoMethodError)
lambda{@li_piao.species = "Human"}.should raise_error(NoMethodError)
end
end
end
end

0 comments on commit b1c60b8

Please sign in to comment.