Sha256: bc26e15b92580f3c386fe0c0e8177ff2c6c45fb13b46a6d6af3125c04f58a0eb
Contents?: true
Size: 758 Bytes
Versions: 2
Compression:
Stored size: 758 Bytes
Contents
# frozen_string_literal: true require "spec_helper" module BitCore describe ContentModule do fixtures :"bit_core/tools", :"bit_core/content_modules", :"bit_core/content_providers" describe "#provider" do it "should return the Null Provider when one is not found" do provider = bit_core_content_modules(:home_landing).provider(8) expect(provider.position).to eq(8) expect(provider.class).to eq(ContentProviders::Null) end it "should return the associated provider at the position" do provider = bit_core_content_modules(:home_landing).provider(1) expect(provider.position).to eq(1) expect(provider.class).not_to eq(ContentProviders::Null) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bit_core-1.4.7 | spec/models/bit_core/content_module_spec.rb |
bit_core-2.0.0.beta2 | spec/models/bit_core/content_module_spec.rb |