Sha256: 9e0453d6d64690c7e9a88f9828e22a92c169f349de123f7770d27ba4236cbb34

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

require File.expand_path('../spec_helper', __FILE__)
require 'fixtures/object_spec'

describe "ObjectMirror" do
  before do
    @r = reflection
  end

  before(:each) do
    @o = ObjectFixture.new
    @m = @r.reflect(@o)
  end

  it "can query instance variables" do
    vars = @m.variables
    vars.collect(&:name).should == ["@ivar"]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubymirrors-0.0.3 spec/object_spec.rb
rubymirrors-0.0.2 spec/object_spec.rb
rubymirrors-0.0.1 spec/object_spec.rb