Sha256: 93e49b5ff70e905121939fefc8e5f8db5a80692a62aede46b9b0d065f7308c6e

Contents?: true

Size: 586 Bytes

Versions: 4

Compression:

Stored size: 586 Bytes

Contents

require 'test_helper'
require 'roar/representer/feature/client'

class ClientTest < MiniTest::Spec
  describe "Client" do
    before do
      @representer = Module.new do
        include Roar::Representer
        property :name
        property :band
      end

      @song = Object.new.extend(@representer)
    end

    it "should add accessors" do
      @song.extend Roar::Representer::Feature::Client
      @song.name = "Social Suicide"
      @song.band = "Bad Religion"
      assert_equal "Social Suicide", @song.name
      assert_equal "Bad Religion", @song.band
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
roar-0.11.8 test/client_test.rb
roar-0.11.7 test/client_test.rb
roar-0.11.6 test/client_test.rb
roar-0.11.5 test/client_test.rb