Sha256: 0cb465f25a70aa9d18e70d3ce0e962a3efc3c3661b6b3c98aa97dd5c5cac161b

Contents?: true

Size: 398 Bytes

Versions: 2

Compression:

Stored size: 398 Bytes

Contents

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) }

    it{ expect(subject.position).to be 1 }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gdshowsdb-3.0.0 spec/gdshowsdb/models/show_spec.rb
gdshowsdb-2.1.0 spec/gdshowsdb/models/show_spec.rb