Sha256: 8171122ce241c45190f6ebb934405b41913889e273c6d591d03753b1fb132cdf

Contents?: true

Size: 476 Bytes

Versions: 11

Compression:

Stored size: 476 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), %w[.. spec_helper]))

describe Ziya::YamlHelpers::Gauges do    
  
  include Ziya::YamlHelpers::Gauges
      
  it "should generate the correct yaml for a gauge" do
    gauge( "fred" ).should == "--- !ruby/object:Ziya::Gauges::Fred\ncomponents: !omap"
  end

  it "should generate the correct yaml for a dial" do
    dial( :circle, :blee ).should == "- :blee: !ruby/object:Ziya::Gauges::Support::Circle"
  end
  
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
derailed-ziya-2.1.0 spec/yaml_helpers/gauges_spec.rb
derailed-ziya-2.1.1 spec/yaml_helpers/gauges_spec.rb
derailed-ziya-2.1.2 spec/yaml_helpers/gauges_spec.rb
derailed-ziya-2.1.3 spec/yaml_helpers/gauges_spec.rb
derailed-ziya-2.1.4 spec/yaml_helpers/gauges_spec.rb
derailed-ziya-2.1.5 spec/yaml_helpers/gauges_spec.rb
ziya-2.3.0 spec/yaml_helpers/gauges_spec.rb
ziya-2.1.9 spec/yaml_helpers/gauges_spec.rb
ziya-2.1.8 spec/yaml_helpers/gauges_spec.rb
ziya-2.1.7 spec/yaml_helpers/gauges_spec.rb
ziya-2.1.6 spec/yaml_helpers/gauges_spec.rb