spec/gdshowsdb/models/show_spec.rb in gdshowsdb-2.0.0 vs spec/gdshowsdb/models/show_spec.rb in gdshowsdb-2.1.0
- old
+ new
@@ -1,13 +1,12 @@
require 'spec_helper'
describe "Show" do
let(:show_spec) { {uuid: generate_uuid, venue: 'The Venue', city: 'Boulder', state: 'CO', country: 'US', year: 1981, month: 2, day: 25, position: 0} }
-
+
context '#update_from' do
before(:each) { Show.create_from(show_spec) }
subject { show_spec[:position] = 1; Show.update_from(show_spec) }
- its(:position) { should == 1 }
- end
-
-end
\ No newline at end of file
+ it{ expect(subject.position).to be 1 }
+ end
+end