Sha256: 16e5899795088b5e9b84992e3984fbc4ef45648f8598ac4e6d5e218fff822981

Contents?: true

Size: 583 Bytes

Versions: 6

Compression:

Stored size: 583 Bytes

Contents

require 'spec_helper'

describe Itunes do

  describe 'the module' do
    before do
      Itunes.shared_secret = nil
    end

    context 'sandbox' do
      it 'should be production by default' do
        Itunes.sandbox?.should be_false
      end

      it 'should be settable' do
        Itunes.sandbox!
        Itunes.sandbox?.should be_true
      end
    end

    context 'shared_secret' do
      it 'should allow setting' do
        Itunes.shared_secret.should be_nil
        Itunes.shared_secret = 'hey'
        Itunes.shared_secret.should == 'hey'
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
itunes-receipt-1.0.0 spec/itunes_spec.rb
itunes-receipt-0.1.5 spec/itunes_spec.rb
itunes-receipt-0.1.4 spec/itunes_spec.rb
itunes-receipt-0.1.3 spec/itunes_spec.rb
itunes-receipt-0.1.2 spec/itunes_spec.rb
itunes-receipt-0.1.1 spec/itunes_spec.rb