Sha256: 566952fd805eb963ab1e9236ef7009464ec384bf918830660882e39977aa5e64
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
require 'spec_helper' describe ::Trax::Core::NamedModule do let(:fake_module_name) { "FakeNamespace::Ecommerce" } subject { Object.const_get(fake_module_name) } it { expect(subject).to respond_to(:price) } it { expect(subject).to respond_to(:shipping) } it { expect(subject.some_method).to eq "blah" } context "includes" do let(:fake_module_name) { "FakeNamespace::ThingWithIncludes" } it { expect(subject::BASE_PRICE).to eq "0.00" } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trax_core-0.0.74 | spec/trax/core/named_module_spec.rb |
trax_core-0.0.73 | spec/trax/core/named_module_spec.rb |