Skip to content

Instantly share code, notes, and snippets.

@raine
Created July 1, 2011 10:15
Show Gist options
  • Select an option

  • Save raine/1058235 to your computer and use it in GitHub Desktop.

Select an option

Save raine/1058235 to your computer and use it in GitHub Desktop.
it 'should create a new ApplicationVersion with correct attributes' do
# uncommenting line below causes the @app.application_versions return [] making the test fail; ???
# @app.application_versions.should be_empty
FakeFS do
expect { process_bundle }.to change(ApplicationVersion, :count).by(1)
end
av = @app.application_versions.first
av.version.should == @version
av.user_id.should == 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment