Skip to content

Commit

Permalink
[bug-fix]: Ensure examples/web runs and renders at least - even thoug…
Browse files Browse the repository at this point in the history
…h it's not updated to reflect the lib lately. A later issue.
  • Loading branch information
grimen committed Aug 22, 2011
1 parent cc8cb46 commit 67539f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions klarna.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 67539f0

Please sign in to comment.