Sha256: 773d5e490fd196a175b322c3e26c0c39bb7b03ab459d203ec86685a04fb2b8b3
Contents?: true
Size: 596 Bytes
Versions: 8
Compression:
Stored size: 596 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
8 entries across 8 versions & 1 rubygems