Sha256: 6452c3f507ca041b358b4329f1c1f0430618e1164743817011efc1cacdaa6171

Contents?: true

Size: 739 Bytes

Versions: 4

Compression:

Stored size: 739 Bytes

Contents

describe Establish do
  describe Establish::AppMetadata do
    let (:apple_id) { 794902327 }
    let (:app_identifier) { 'net.sunapps.1' }

    describe "#update_description", felix: true do
      before do
        @app = Establish::App.new(apple_id, app_identifier)
      end

      it "throws an exception when a string is given instead of a string" do
        except {
          @app.metadata.update_description("something")
        }.to raise_error("Please pass a hash of languages to this method")
      end

      it "updates the description when a hash is given", now: true do
        @app.metadata.update_description({
            'de' => "new"
        })
        # TODO
        # @app.upload_metadata!
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
establish-0.0.33 spec/app_metadata_spec.rb
establish-0.0.32 spec/app_metadata_spec.rb
establish-0.0.31 spec/app_metadata_spec.rb
establish-0.0.30 spec/app_metadata_spec.rb