require 'spec_helper'

describe Spree::Gateway::Eway do
  let (:gateway) { Spree::Gateway::Eway.new }

  describe "options" do
    it "should include :test => true in  when :test_mode is true" do
      gateway.preferred_test_mode = true
      gateway.options[:test].should == true
    end

    it "should not include :test when test_mode is false" do
      gateway.preferred_test_mode = false
      gateway.options[:test].should be_nil
    end
  end
end
