Sha256: 857c14bfd56af486c78fdf8076c76cdc1b9451180fb750faaa964fb999c8947d

Contents?: true

Size: 652 Bytes

Versions: 3

Compression:

Stored size: 652 Bytes

Contents

require 'bundler'
Bundler.setup

gem 'minitest'
require 'representable'
require 'representable/json'
require 'representable/xml'
require 'test/unit'
require 'minitest/spec'
require 'minitest/autorun'
require 'test_xml/mini_test'
require 'mocha'

class Album
  attr_accessor :songs, :best_song
  def initialize(*songs)
    @songs      = songs
    @best_song  = songs.last
  end
end

class Song
  attr_accessor :name
  def initialize(name=nil)
    @name = name
  end
  
  def ==(other)
    name == other.name
  end
end

module XmlHelper
  def xml(document)
    Nokogiri::XML(document).root
  end
end

MiniTest::Spec.class_eval do
  include XmlHelper
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
representable-1.2.3 test/test_helper.rb
representable-1.2.2 test/test_helper.rb
representable-1.2.1 test/test_helper.rb