Sha256: 1103ebef3e87b4a9f27406598d1b3a0dbbed244b09b247546e473eef33ed1712

Contents?: true

Size: 488 Bytes

Versions: 6

Compression:

Stored size: 488 Bytes

Contents

require_relative '../../../spec_helper'

describe "the DSL for setting configuration values" do

  it "should process any call by setting the value directly on Tabulous::Config" do
    Tabulous::Config.text_color = 'blue'
    Tabulous::Config.active_tab_clickable = false
    Tabulous::Dsl::Config.process do
      text_color 'red'
      active_tab_clickable true
    end
    Tabulous::Config.text_color.should == 'red'
    Tabulous::Config.active_tab_clickable.should == true
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tabulous-2.1.4 spec/lib/tabulous/dsl/config_spec.rb
tabulous-2.1.3 spec/lib/tabulous/dsl/config_spec.rb
tabulous-2.1.2 spec/lib/tabulous/dsl/config_spec.rb
tabulous-2.1.1 spec/lib/tabulous/dsl/config_spec.rb
tabulous-2.1.0 spec/lib/tabulous/dsl/config_spec.rb
tabulous-2.0.0 spec/lib/tabulous/dsl/config_spec.rb