Sha256: a5dd7f076da5263f0b880c75148ddb1f05881e32f3307c635adecb4428305a27
Contents?: true
Size: 1005 Bytes
Versions: 1
Compression:
Stored size: 1005 Bytes
Contents
require 'spec_helper' if defined?(::Rails) describe Rack::DevMark::RailsOptions do subject { Rack::DevMark::RailsOptions.new } it do is_expected.to respond_to(:enable) is_expected.to respond_to(:enable=) is_expected.to respond_to(:theme) is_expected.to respond_to(:theme=) is_expected.to respond_to(:insert_type) is_expected.not_to respond_to(:insert_type=) end it "has aliases of theme methods" do expect(subject.method(:theme)).to eq(subject.method(:custom_theme)) expect(subject.method(:theme=)).to eq(subject.method(:custom_theme=)) end describe "#insert_before" do it "has the implicit setter of insert_type" do subject.insert_before 'something' expect(subject.insert_type).to eq(['insert_before', 'something']) end end describe "#insert_after" do it "has the implicit setter of insert_type" do subject.insert_after 'something' expect(subject.insert_type).to eq(['insert_after', 'something']) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-dev-mark-0.6.4 | spec/rack/dev-mark/rails_options_spec.rb |