Sha256: 004caefa2490dd19aa160b8ade0c9f6d4c4b9fb87059bcd9a4294ed3b1506cc4

Contents?: true

Size: 487 Bytes

Versions: 32

Compression:

Stored size: 487 Bytes

Contents

require "spec_helper"

describe Blogit do
  
  it "should allow developers to set configurations with a block" do
    initial_value = Blogit.configuration.current_blogger_method
    Blogit.configure do |config| 
      config.current_blogger_method = :logged_in_user
    end
    user_set_value = Blogit.configuration.current_blogger_method
    initial_value.should_not eql(user_set_value)
  end
  
  after :all do
    Blogit.configure do |config|
      config.inspect
    end
  end
  
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
blogit-0.2.0 spec/blogit_spec.rb
blogit-0.1.0 spec/blogit_spec.rb
blogit-0.0.13 spec/blogit_spec.rb
blogit-0.0.12 spec/blogit_spec.rb
blogit-0.0.11 spec/blogit_spec.rb
blogit-0.0.10 spec/blogit_spec.rb
blogit-0.0.9 spec/blogit_spec.rb
blogit-0.0.8 spec/blogit_spec.rb
blogit-0.0.7 spec/blogit_spec.rb
blogit-0.0.6 spec/blogit_spec.rb
blogit-0.0.5 spec/blogit_spec.rb
blogit-0.0.4 spec/blogit_spec.rb