Sha256: f2bce788ee080279428ed0f9416b38b255ec97ef0d33923e348d92ec45968607

Contents?: true

Size: 499 Bytes

Versions: 3

Compression:

Stored size: 499 Bytes

Contents

require 'spec_helper' 

describe Spree::ContentController do
  before do
    controller.stub(:authenticate_spree_user!).and_return(true)
    @user = mock_model(Spree::User, :generate_spree_api_key! => false, :last_incomplete_spree_order => nil)
    controller.stub(:spree_current_user).and_return(@user)
  end

  describe "GET bank_transfer" do
    it "renders bank_transfer" do
      get :bank_transfer, :use_route => 'spree'
      response.should render_template("bank_transfer")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree-bank-transfer-2.3.0 spec/controllers/spree/content_controller_spec.rb
spree-bank-transfer-2.2.5 spec/controllers/spree/content_controller_spec.rb
spree-bank-transfer-2.2.4 spec/controllers/spree/content_controller_spec.rb