Sha256: e222add5ffcf77e804a10e2afe7e96f04d6b6bd2b62a304e7b55ee11c782175b

Contents?: true

Size: 752 Bytes

Versions: 6

Compression:

Stored size: 752 Bytes

Contents

require 'spec_helper'

module Recurly
  describe Transparent do
    # version accounts based on this current files modification dates
    timestamp = File.mtime(__FILE__).to_i

    describe ".url" do
      use_vcr_cassette "transparent/post-url/#{timestamp}"

      it "should not change after calling account.find()" do

        original_transparent_url = "#{Recurly::Base.site}/transparent/#{Recurly.subdomain}/subscription"
        Transparent.url.should == original_transparent_url
        
        account_code = "account-get-#{timestamp}"
        Factory.create_account("account-get-#{timestamp}")
        r = Account.find("account-get-#{timestamp}")

        Transparent.url.should == original_transparent_url
      
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
recurly-0.4.7 spec/integration/transparent_spec.rb
recurly-0.4.6 spec/integration/transparent_spec.rb
recurly-0.4.5 spec/integration/transparent_spec.rb
recurly-0.4.4 spec/integration/transparent_spec.rb
recurly-0.4.3 spec/integration/transparent_spec.rb
recurly-0.4.2 spec/integration/transparent_spec.rb