spec/controllers/landable/api/assets_controller_spec.rb in landable-1.13.1 vs spec/controllers/landable/api/assets_controller_spec.rb in landable-1.13.2

- old
+ new

@@ -1,24 +1,25 @@ require 'spec_helper' -module Landable::Api - describe AssetsController, json: true do - routes { Landable::Engine.routes } +module Landable + module Api + describe AssetsController, json: true do + routes { Landable::Engine.routes } - describe '#update' do - include_examples 'Authenticated API controller', :make_request + describe '#update' do + include_examples 'Authenticated API controller', :make_request - let(:asset) { create :asset, description: "Not updated" } + let(:asset) { create :asset, description: 'Not updated' } - def make_request - put :update, id: asset.id, asset: { description: "Updated" } - end + def make_request + put :update, id: asset.id, asset: { description: 'Updated' } + end - it "updates the asset description" do - make_request - asset.reload - asset.description.should == "Updated" + it 'updates the asset description' do + make_request + asset.reload + asset.description.should eq 'Updated' + end end end end - end