Sha256: 1173670021636a978c59e3566ab9f8deacba436f71eac0572079c1409bc22398

Contents?: true

Size: 481 Bytes

Versions: 2

Compression:

Stored size: 481 Bytes

Contents

require 'spec_helper'

describe Banyan::BanyanSingleGroupModel do
  subject { FactoryGirl.create :banyan_single_group_model }

  it                   { should be_valid }
  its(:category_group) { should be_nil }

  context "with category group created" do
    let(:category_group) { FactoryGirl.create :banyan_category_group }
    before do
      subject.category_group = category_group
      subject.reload
    end

    its(:category_group) { should eq(category_group) }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
banyan-1.1.1 spec/banyan/banyan_single_group_model_spec.rb
banyan-1.0.1 spec/banyan/banyan_single_group_model_spec.rb