spec/template_spec.rb in atpay_buttons-1.4.3 vs spec/template_spec.rb in atpay_buttons-1.4.4
- old
+ new
@@ -5,18 +5,13 @@
let(:token) { '@QQTFJz2wM5fcVD/PLmpnjNvJIKe8MoGOAAAAAAAAD63aKFKQqrkwigfNSdPP2kVGqHiDr7t2yCLyqcuDTUrBvGBcgbzFnyNui7PYSzHRJM0tP3TS7DlURUuhVq5p3gQvX0Ycd2ISHGP9POWz3B2u+sTVtRy89aM=' }
let(:options) { {destination: "Partner Name", email: 'bob@example.com', amount: 20, templates: "spec/fixtures/templates", token: token } }
let(:subject) { AtPay::Button::Template.new options }
let(:subject_class) { AtPay::Button::Template }
-=begin
- it "test" do
- binding.pry
- end
-=end
-
describe "#new" do
it "adds the provided options to the defaults" do
- subject.instance_eval{ @options }.keys.sort.must_equal [:subject, :token, :title, :background_color, :foreground_color, :image, :processor, :destination, :templates, :email, :amount, :wrap, :wrap_text].sort
+ # TODO: does this add any value to the tests?
+ subject.instance_eval{ @options }.keys.sort.must_equal [:analytic_url, :subject, :token, :title, :background_color, :foreground_color, :image, :processor, :destination, :templates, :email, :amount, :wrap, :wrap_text].sort
end
end
describe "#render" do
it "renders yahoo specific templates for yahoo providers" do