Sha256: bf258bea8704dd4426043f91a784c07bb0348c2711d57eb6826b229f5a886625

Contents?: true

Size: 563 Bytes

Versions: 10

Compression:

Stored size: 563 Bytes

Contents

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

describe Ziya::Components::Series do
  before( :each ) do
    @comp = Ziya::Components::Series.new
  end
    
  it "should define the correct attribute methods" do
    lambda{ Ziya::Components::Series.attributes[@comp.class.name].each {
     |m| @comp.send( m ) } }.should_not raise_error
  end
    
  it "should flatten component correctly" do
    xml          = Builder::XmlMarkup.new
    @comp.switch = false
    @comp.flatten( xml ).should == "<series>false</series>"
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
derailed-ziya-2.0.4 spec/components/series.rb
derailed-ziya-2.0.6 spec/components/series.rb
derailed-ziya-2.0.8 spec/components/series.rb
ziya-2.0.1 spec/components/series.rb
ziya-2.0.2 spec/components/series.rb
ziya-2.0.6 spec/components/series.rb
ziya-2.0.3 spec/components/series.rb
ziya-2.0.4 spec/components/series.rb
ziya-2.0.5 spec/components/series.rb
ziya-2.0.7 spec/components/series.rb