Skip to content

Instantly share code, notes, and snippets.

@dkubb
Created July 28, 2008 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dkubb/2944 to your computer and use it in GitHub Desktop.
Save dkubb/2944 to your computer and use it in GitHub Desktop.
it 'should save both the object and parent if both are new' do
pending('This is a bug that should be fixed') do
area1 = Area.new(:name => 'area1')
area1.machine = Machine.new(:name => 'machine1')
area1.save
area1.machine_id.should == area1.machine.id
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment