Sha256: 460af1b85c22e0b2d33b6d6eb71b56201d1b0d0637ae5c90103e76006cff2e78

Contents?: true

Size: 333 Bytes

Versions: 8

Compression:

Stored size: 333 Bytes

Contents

require 'spec_helper'

describe RSpecSystem::Result do
  it 'should allow you to query using methods' do
    result = subject.class.new(:foo => 'bar')
    result.foo.should == 'bar'
  end

  it 'should allow you to query using hash queries' do
    result = subject.class.new(:foo => 'bar')
    result[:foo].should == 'bar'
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rspec-system-1.7.1 spec/unit/result_spec.rb
rspec-system-1.7.0 spec/unit/result_spec.rb
rspec-system-1.6.0 spec/unit/result_spec.rb
rspec-system-1.5.0 spec/unit/result_spec.rb
rspec-system-1.4.0 spec/unit/result_spec.rb
rspec-system-1.3.0 spec/unit/result_spec.rb
rspec-system-1.2.1 spec/unit/result_spec.rb
rspec-system-1.2.0 spec/unit/result_spec.rb