Sha256: 988b093875ef5d0f5190edfa68dd7dc3bff4aaa858033beb11d9e6e4c83cd3ba
Contents?: true
Size: 618 Bytes
Versions: 3
Compression:
Stored size: 618 Bytes
Contents
require 'spec_helper' describe Commands::Core::Application::Get do is_required :id, :account_id let(:response) { subject.class.run(params) } let(:params) { {} } before do @application = create(:application) end context 'with valid params' do let(:params) { { id: @application.id, account_id: @application.account_id } } it 'is valid' do response.success?.should == true end it 'return the application' do response.result[:applications].length.should == 1 response.result[:applications].first[:id].should == @application.id.to_s end end end
Version data entries
3 entries across 3 versions & 1 rubygems