Sha256: 0f24d1aefea2a18da94d86521345b376169d2292008702eab39dc42ddbc0b321
Contents?: true
Size: 707 Bytes
Versions: 5
Compression:
Stored size: 707 Bytes
Contents
require 'spec_helper' describe 'ShowSet' do let(:show_uuid) { generate_uuid } let(:show) { Show.create(uuid: show_uuid) } let(:show_set_uuid) { generate_uuid } let(:set_spec) { {uuid: show_set_uuid, show_uuid: show.uuid, position: 0, encore: false} } let(:show_set) { ShowSet.create_from(set_spec) } context '#create_from' do subject { show_set } it { is_expected.not_to be_nil } it { expect(subject.show).to eq(show) } end context '#remove_from' do before(:each) do ShowSet.create_from(set_spec) ShowSet.remove_from(set_spec) show.show_sets.each {} end subject { show } it{ expect(subject.show_sets).not_to include(show_set) } end end
Version data entries
5 entries across 5 versions & 1 rubygems