Sha256: 1e78c35becd85c10752eadc132ad2bca6051007f6cb103ec82760bd771c77fdb

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

require 'rails_helper'

module AuthNetReceiver
  RSpec.describe RawTransactionsController, :type => :controller do

    it "should create a new raw transaction" do
      post :create, {:use_route => :auth_net_receiver}
      expect(response).to be_success
      expect(AuthNetReceiver::RawTransaction.count).to eq(1)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
auth_net_receiver-1.0.beta3 spec/controllers/auth_net_receiver/raw_transactions_controller_spec.rb
auth_net_receiver-1.0.beta2 spec/controllers/auth_net_receiver/raw_transactions_controller_spec.rb