Sha256: 119371418fe38ed57d0f48eb382f2ac6e0c32fc32d0c7e63413c8c6b970e1cd0
Contents?: true
Size: 799 Bytes
Versions: 5
Compression:
Stored size: 799 Bytes
Contents
# == Schema Information # # Table name: available_modules # # id :integer not null, primary key # created_at :datetime # updated_at :datetime # module_position_id :integer # static_module_id :integer # require 'spec_helper' module Mokio describe AvailableModule do before(:each) do @menu = FactoryGirl.create(:menu) @position = FactoryGirl.create(:module_position) @static_module = FactoryGirl.create(:static_module, :module_position_ids => [@position.id]) end it "module_title returns title of related static module" do av_mod = AvailableModule.where(static_module_id: @static_module.id, module_position_id: @position.id).first expect(av_mod.module_title).to eq(@static_module.title) end end end
Version data entries
5 entries across 5 versions & 1 rubygems