Sha256: e4f3c27852d7f4046cf358920d2283314205601850324a0bf24b428008a34d4c
Contents?: true
Size: 664 Bytes
Versions: 3
Compression:
Stored size: 664 Bytes
Contents
require "spec_helper" describe Docks::Tags::DemoType do subject { Docks::Tags::DemoType.instance } it "does not allow multiline content" do expect(subject.multiline?).to be false end it "only allows one tag per block" do expect(subject.multiple_allowed?).to be false end describe "#process" do it "makes sure the value is a valid demo type" do symbol = Docks::Containers::Symbol.new symbol[subject.name] = Docks::Types::Demo::JOINT expect(subject).to receive(:ensure_valid_demo_type).and_call_original subject.process(symbol) expect(symbol[subject.name]).to be Docks::Types::Demo::JOINT end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docks_app-0.0.3 | spec/lib/tags/demo_type_tag_spec.rb |
docks_app-0.0.2 | spec/lib/tags/demo_type_tag_spec.rb |
docks_app-0.0.1 | spec/lib/tags/demo_type_tag_spec.rb |