Sha256: 5aab93841ffd56debd8fd310a586e0027bd18af9514538c67704d5a652d431b8

Contents?: true

Size: 475 Bytes

Versions: 7

Compression:

Stored size: 475 Bytes

Contents

require 'helper'

class TestSetlistItem < Test::Unit::TestCase
  context "Given a new SetlistItem" do
    setup do
      @name         = 'Tour Setlist'
      @setlist_item = Songkickr::SetlistItem.new({'encore' => 0, 'name' => @name})
    end

    should "init encore" do
      assert_not_nil @setlist_item
      assert !@setlist_item.encore
    end

    should "init name" do
      assert_not_nil @setlist_item
      assert_equal @name, @setlist_item.name
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
songkickr-0.5.5 test/songkickr/test_setlist_item.rb
songkickr-0.5.4 test/songkickr/test_setlist_item.rb
songkickr-0.5.3 test/songkickr/test_setlist_item.rb
songkickr-0.5.2 test/songkickr/test_setlist_item.rb
songkickr-0.5.0 test/songkickr/test_setlist_item.rb
songkickr-0.4.1 test/songkickr/test_setlist_item.rb
songkickr-0.4.0 test/songkickr/test_setlist_item.rb