spec/integration/notify/v1/service/user/user_binding_spec.rb in twilio-ruby-5.7.2 vs spec/integration/notify/v1/service/user/user_binding_spec.rb in twilio-ruby-5.8.0
- old
+ new
@@ -9,20 +9,20 @@
describe 'UserBinding' do
it "can fetch" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.notify.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .users('NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .bindings('BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
+ @client.notify.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .users('NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .bindings('BSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
- url: 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
+ url: 'https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Bindings/BSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))).to eq(true)
end
it "receives fetch responses" do
@holodeck.mock(Twilio::Response.new(
@@ -49,61 +49,61 @@
"url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/identity/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.notify.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .users('NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .bindings('BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').fetch()
+ actual = @client.notify.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .users('NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .bindings('BSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
expect(actual).to_not eq(nil)
end
it "can delete" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.notify.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .users('NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .bindings('BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
+ @client.notify.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .users('NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .bindings('BSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'delete',
- url: 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
+ url: 'https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Bindings/BSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
))).to eq(true)
end
it "receives delete responses" do
@holodeck.mock(Twilio::Response.new(
204,
nil,
))
- actual = @client.notify.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .users('NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .bindings('BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa').delete()
+ actual = @client.notify.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .users('NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .bindings('BSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
expect(actual).to eq(true)
end
it "can create" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.notify.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .users('NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ @client.notify.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .users('NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.bindings.create(binding_type: 'apn', address: 'address')
}.to raise_exception(Twilio::REST::TwilioError)
values = {'BindingType' => 'apn', 'Address' => 'address', }
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'post',
- url: 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings',
+ url: 'https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Bindings',
data: values,
))).to eq(true)
end
it "receives create responses" do
@@ -131,12 +131,12 @@
"url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/identity/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.notify.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .users('NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ actual = @client.notify.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .users('NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.bindings.create(binding_type: 'apn', address: 'address')
expect(actual).to_not eq(nil)
end
@@ -165,31 +165,31 @@
"url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/identity/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
]
))
- actual = @client.notify.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .users('NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ actual = @client.notify.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .users('NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.bindings.create(binding_type: 'apn', address: 'address')
expect(actual).to_not eq(nil)
end
it "can read" do
@holodeck.mock(Twilio::Response.new(500, ''))
expect {
- @client.notify.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .users('NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ @client.notify.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .users('NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.bindings.list()
}.to raise_exception(Twilio::REST::TwilioError)
values = {}
expect(
@holodeck.has_request?(Holodeck::Request.new(
method: 'get',
- url: 'https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users/NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings',
+ url: 'https://notify.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Users/NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Bindings',
))).to eq(true)
end
it "receives read_empty responses" do
@holodeck.mock(Twilio::Response.new(
@@ -208,12 +208,12 @@
}
}
]
))
- actual = @client.notify.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .users('NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ actual = @client.notify.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .users('NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.bindings.list()
expect(actual).to_not eq(nil)
end
@@ -255,11 +255,11 @@
}
}
]
))
- actual = @client.notify.v1.services('ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
- .users('NUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') \
+ actual = @client.notify.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
+ .users('NUXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
.bindings.list()
expect(actual).to_not eq(nil)
end
end
\ No newline at end of file