Sha256: b08989344ea24cdb2cd5817637ce76bb2d7933de4e1fbb90c4aba3f185860731

Contents?: true

Size: 562 Bytes

Versions: 12

Compression:

Stored size: 562 Bytes

Contents

require 'spec_helper'

describe Fozzie do

  it "allows dynamic assignment" do
    { :host => 'somewhere.local', :port => 99 }.each do |field, val|
      Fozzie.configure {|c| c.send("#{field}=", val) }
      Fozzie.c.send(field).should == val
    end
  end

  it "has configuration" do
    Fozzie.config.should be_kind_of(Fozzie::Configuration)
    Fozzie.c.should be_kind_of(Fozzie::Configuration)
  end

  it "creates new classes for statistics gathering" do
    Fozzie.c.namespaces.each do |k|
      Kernel.const_defined?(k).should == true
    end
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fozzie-0.0.27 spec/lib/fozzie_spec.rb
fozzie-0.0.26 spec/lib/fozzie_spec.rb
fozzie-0.0.25 spec/lib/fozzie_spec.rb
fozzie-0.0.24 spec/lib/fozzie_spec.rb
fozzie-0.0.23 spec/lib/fozzie_spec.rb
fozzie-0.0.22 spec/lib/fozzie_spec.rb
fozzie-0.0.21 spec/lib/fozzie_spec.rb
fozzie-0.0.20 spec/lib/fozzie_spec.rb
fozzie-0.0.19 spec/lib/fozzie_spec.rb
fozzie-0.0.18 spec/lib/fozzie_spec.rb
fozzie-0.0.17 spec/lib/fozzie_spec.rb
fozzie-0.0.16 spec/lib/fozzie_spec.rb