Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a few other examples for new resources
  • Loading branch information
remi committed Jun 12, 2012
1 parent 040b9ad commit 1a17fb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/model/orm_spec.rb
Expand Up @@ -41,8 +41,10 @@
end # }}}

it "handles new resource" do # {{{
@new_user = User.new(:fullname => "Tobias Fünke")
@new_user = User.new(:fullname => "Tobias Fünke", :medicine_license => nil)
@new_user.new?.should be_true
@new_user.fullname.should == "Tobias Fünke"
@new_user.medicine_license.should be_nil

@existing_user = User.find(1)
@existing_user.new?.should be_false
Expand Down

0 comments on commit 1a17fb1

Please sign in to comment.