spec/api/user_spec.rb in yotpo-0.0.10 vs spec/api/user_spec.rb in yotpo-0.1.0
- old
+ new
@@ -19,15 +19,15 @@
VCR.use_cassette('create_user') do
@response = Yotpo.create_user(@user_info)
end
end
subject { @response.body }
- it { should be_a ::Hashie::Rash }
+ it { should be_a ::Hashie::Mash }
it { should respond_to :app_key }
it { should respond_to :secret }
it { should respond_to :token }
- it { should respond_to :id }
+ it { should respond_to :user_id }
end
describe '#get_oauth_token' do
before(:all) do
oauth_request = {
@@ -38,11 +38,11 @@
VCR.use_cassette('get_oauth_token') do
@response = Yotpo.get_oauth_token(oauth_request)
end
end
subject { @response.body }
- it { should be_a ::Hashie::Rash }
+ it { should be_a ::Hashie::Mash }
it { should respond_to :access_token }
it { should respond_to :token_type }
end
describe '#get_login_url' do
@@ -54,10 +54,10 @@
VCR.use_cassette('get_login_url') do
@response = Yotpo.get_login_url(request)
end
end
subject { @response.body }
- it { should be_a ::Hashie::Rash }
+ it { should be_a ::Hashie::Mash }
it { should respond_to :code }
it { should respond_to :signin_url }
end
end