Sha256: 180cac3f299a86de66039e0ac570bba1de3ac2c10adfc4b147ebe9e163da4903

Contents?: true

Size: 398 Bytes

Versions: 3

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: 1985, month: 3, day: 12, 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

3 entries across 3 versions & 1 rubygems

Version Path
gdshowsdb-4.0.2 spec/gdshowsdb/models/show_spec.rb
gdshowsdb-4.0.1 spec/gdshowsdb/models/show_spec.rb
gdshowsdb-4.0.0 spec/gdshowsdb/models/show_spec.rb