passaporteweb-client 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ require 'spec_helper'
4
4
  describe PassaporteWeb do
5
5
 
6
6
  it 'should have a version number' do
7
- PassaporteWeb::VERSION.should_not be_nil
7
+ expect(PassaporteWeb::VERSION).not_to be_nil
8
8
  end
9
9
 
10
10
  describe 'configuration' do
@@ -16,16 +16,16 @@ describe PassaporteWeb do
16
16
  c.application_secret = 'some-app-secret'
17
17
  c.user_token = nil
18
18
  end
19
- PassaporteWeb.configuration.url.should == 'http://some/where'
20
- PassaporteWeb.configuration.user_agent.should == 'My App v1.0'
21
- PassaporteWeb.configuration.application_token.should == 'some-app-token'
22
- PassaporteWeb.configuration.application_secret.should == 'some-app-secret'
23
- PassaporteWeb.configuration.user_token.should be_nil
19
+ expect(PassaporteWeb.configuration.url).to eq('http://some/where')
20
+ expect(PassaporteWeb.configuration.user_agent).to eq('My App v1.0')
21
+ expect(PassaporteWeb.configuration.application_token).to eq('some-app-token')
22
+ expect(PassaporteWeb.configuration.application_secret).to eq('some-app-secret')
23
+ expect(PassaporteWeb.configuration.user_token).to be_nil
24
24
  end
25
25
  it 'should use a singleton object for the configuration values' do
26
26
  config1 = PassaporteWeb.configuration
27
27
  config2 = PassaporteWeb.configuration
28
- config1.should === config2
28
+ expect(config1).to be === config2
29
29
  end
30
30
  end
31
31
 
data/spec/spec_helper.rb CHANGED
@@ -23,10 +23,6 @@ end
23
23
  RSpec.configure do |c|
24
24
  c.mock_with :rspec
25
25
 
26
- # so we can use :vcr rather than :vcr => true;
27
- # in RSpec 3 this will no longer be necessary.
28
- c.treat_symbols_as_metadata_keys_with_true_values = true
29
-
30
26
  c.before(:vcr => true) do
31
27
  PassaporteWeb.configure do |c|
32
28
  c.url = 'http://sandbox.app.passaporteweb.com.br' # TODO trocar para https
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passaporteweb-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Tassinari de Oliveira
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-12 00:00:00.000000000 Z
13
+ date: 2015-12-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: 1.9.0
35
+ version: '1.11'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: 1.9.0
42
+ version: '1.11'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: bundler
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -258,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  version: '0'
259
259
  requirements: []
260
260
  rubyforge_project:
261
- rubygems_version: 2.4.5
261
+ rubygems_version: 2.4.5.1
262
262
  signing_key:
263
263
  specification_version: 4
264
264
  summary: 'A Ruby client for the PassaporteWeb REST API: https://app.passaporteweb.com.br/static/docs/'