Created
September 12, 2016 17:04
-
-
Save mPanasiewicz/9751c1de65e9920d8ad6d6f866ef0ae5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
RSpec.describe Spree::Admin::ProductsController, type: :controller do | |
describe 'GET synchronize' do | |
stub_authorization! | |
let!(:variant) { create(:variant) } | |
it 'updates @products pkb starpacks details' do | |
spree_get :synchronize, id: variant | |
expect(response).to have_http_status(200) | |
end | |
it 'returns record not found if product not exist' do | |
spree_get :synchronize, id: 0 | |
expect(response).to have_http_status(404) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment