Permalink
Browse files

[bug-fix]: Ensure examples/web runs and renders at least - even thoug…

…h it's not updated to reflect the lib lately. A later issue.
  • Loading branch information...
1 parent cc8cb46 commit 67539f0c972820d747752ce469d93bf4b514cb91 @grimen grimen committed Aug 22, 2011
Showing with 4 additions and 3 deletions.
  1. +3 −3 examples/web.rb
  2. +1 −0 klarna.gemspec
View
6 examples/web.rb
@@ -6,7 +6,7 @@
require 'sinatra/mapping'
require 'haml'
-require File.join(File.dirname(__FILE__), 'initializer').to_s
+require File.expand_path("config/initializer", File.dirname(__FILE__)).to_s
# CAUTION: This code haven't been updated to reflect the library - TODO.
@@ -120,8 +120,8 @@ def shipment_type_selector(label = "Shipment type:")
end <<
capture_haml do
haml_tag(:select, :name => :shipment_type) do
- haml_tag(:option, "Standard", :value => ::Klarna::API::ShipmentTypes::NORMAL)
- haml_tag(:option, "Express", :value => ::Klarna::API::ShipmentTypes::EXPRESS)
+ haml_tag(:option, "Standard", :value => ::Klarna::API::SHIPMENT_TYPES[:NORMAL])
+ haml_tag(:option, "Express", :value => ::Klarna::API::SHIPMENT_TYPES[:EXPRESS])
end
end
end
View
1 klarna.gemspec
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'guard-minitest'
s.add_development_dependency 'sinatra'
s.add_development_dependency 'sinatra-mapping'
+ s.add_development_dependency 'haml'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")

0 comments on commit 67539f0

Please sign in to comment.