Sha256: dcb547cf488f05a8b6688fba67d2014a1eb79abce4b29957225e6e5055f256e6

Contents?: true

Size: 699 Bytes

Versions: 13

Compression:

Stored size: 699 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe NSISam::Response do
  let(:response) do
    response = NSISam::Response.new('key' => 'key value',
                                    'checksum' => 'checksum value',
                                    'data' => 'data value',
                                    'deleted' => true)
  end

  it 'retrieves response data as methods' do
    response.key.should == 'key value'
    response.checksum.should == 'checksum value'
    response.data.should == 'data value'
  end

  it 'retrieves deleted as boolean method' do
    response.should be_deleted
    NSISam::Response.new('deleted' => false).should_not be_deleted
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
nsisam-0.7.7 spec/response_spec.rb
nsisam-0.7.6 spec/response_spec.rb
nsisam-0.7.5 spec/response_spec.rb
nsisam-0.7.4 spec/response_spec.rb
nsisam-0.7.3 spec/response_spec.rb
nsisam-0.7.2 spec/response_spec.rb
nsisam-0.7.1 spec/response_spec.rb
nsisam-0.7.0 spec/response_spec.rb
nsisam-0.6.4 spec/response_spec.rb
nsisam-0.6.3 spec/response_spec.rb
nsisam-0.6.2 spec/response_spec.rb
nsisam-0.6.1 spec/response_spec.rb
nsisam-0.6.0 spec/response_spec.rb