Sha256: 11117ff42cfe373e6842dc148cbb1e54b4b0e356dda71da7a12971eec0a88ab5

Contents?: true

Size: 804 Bytes

Versions: 6

Compression:

Stored size: 804 Bytes

Contents

describe Establish do
  describe Establish::App do
    let (:apple_id) { 284882215 }
    let (:app_identifier) { 'com.facebook.Facebook' }
    describe "#initialize" do
      it "automatically fetches the app identifier, if only Apple ID is given" do
        app = Establish::App.new(apple_id)

        app.app_identifier.should eq(app_identifier)
        app.apple_id.should eq(apple_id)
      end

      it "lets me create an app using an Apple ID and app identifier" do
        app = Establish::App.new(apple_id, "com.facebook.Facebook")

        app.app_identifier.should eq(app_identifier)
        app.apple_id.should eq(apple_id)
      end

      it "lets me create an app without any information given (yet)" do
        Establish::App.new.app_identifier.should eq(nil)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
establish-0.0.25 spec/app_spec.rb
establish-0.0.24 spec/app_spec.rb
establish-0.0.23 spec/app_spec.rb
establish-0.0.22 spec/app_spec.rb
establish-0.0.21 spec/app_spec.rb
establish-0.0.20 spec/app_spec.rb