Sha256: 5aabfd44e4c8009aa8fcb14b2c7bd1d04f347cef76f009d424af377f6a473f1a
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
require 'helper' describe Yotpo::Product do describe '#get_all_bottom_lines' do before(:all) do get_app_bottom_lines_params = { utoken: @utoken, app_key: @app_key } VCR.use_cassette('check_minisite_subdomain') do @response = Yotpo.get_all_bottom_lines(get_app_bottom_lines_params) end end subject { @response.body.bottomlines[0] } it { should be_a ::Hashie::Rash } it { should respond_to :domain_key } it { should respond_to :product_score } it { should respond_to :total_reviews } end describe '#get_product_bottom_line' do before(:all) do get_bottom_line_params = { product_id: 'D-4771', app_key: @app_key } VCR.use_cassette('get_product_bottom_line') do @response = Yotpo.get_product_bottom_line(get_bottom_line_params) end end subject { @response.body.bottomline } it { should be_a ::Hashie::Rash } it { should respond_to :average_score } it { should respond_to :total_reviews } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yotpo-0.0.8 | spec/api/product_spec.rb |
yotpo-0.0.7 | spec/api/product_spec.rb |
yotpo-0.0.6 | spec/api/product_spec.rb |
yotpo-0.0.5 | spec/api/product_spec.rb |