Sha256: 4466a2f5172b4d3c8316c5db189f9d5ae5a3471277ef0168f14c4cbed8911c98
Contents?: true
Size: 984 Bytes
Versions: 1
Compression:
Stored size: 984 Bytes
Contents
require 'spec_helper' describe FoundationRailsHelper do describe FoundationRailsHelper::Configuration do describe "#button_class" do it "default value is 'small radius success button'" do config = FoundationRailsHelper::Configuration.new expect(config.button_class).to eq('small radius success button') end end describe "#button_class=" do it "can set value" do config = FoundationRailsHelper::Configuration.new config.button_class = 'new-class' expect(config.button_class).to eq('new-class') end end describe ".reset" do before :each do FoundationRailsHelper.configure do |config| config.button_class = 'new-class' end end it "resets the configuration" do FoundationRailsHelper.reset config = FoundationRailsHelper.configuration expect(config.button_class).to eq('small radius success button') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foundation_rails_helper-1.0.0 | spec/foundation_rails_helper/configuration_spec.rb |