Skip to content

Commit

Permalink
Fix failing specs
Browse files Browse the repository at this point in the history
  • Loading branch information
namusyaka committed Mar 10, 2016
1 parent 8af7882 commit 978db12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ task :release => :bump
desc "Run complete application spec suite"
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = './spec/**/*_spec.rb'
t.rspec_opts = %w(--format documentation --fail-fast)
t.rspec_opts = %w(--color --format documentation --fail-fast)
end

task :default => :spec
2 changes: 1 addition & 1 deletion spec/auto_locale_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
set :locales, [ :es, :en ]
set :locale_exclusive_paths, [ /^\/?$/, '/unlocalized' ]

get('/(:lang)') { switch_to_lang(:en) }
get('/(:lang)?') { switch_to_lang(:en) }
get('/unlocalized/path') { switch_to_lang(:en) }
}
end
Expand Down
4 changes: 2 additions & 2 deletions spec/breadcrumb_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
include Padrino::Helpers::OutputHelpers
include Padrino::Helpers::TagHelpers
include Padrino::Helpers::AssetTagHelpers
include Padrino::Contrib::Helpers::Breadcrumbs
include Padrino::Contrib::Helpers::Breadcrumbs::Helpers

let(:breadcrumb){ Padrino::Helpers::Breadcrumb.new }
let(:breadcrumb){ Padrino::Contrib::Helpers::Breadcrumb.new }
after(:each) { breadcrumb.reset! }

describe "for Breadcrumbs#breadcrumbs method" do
Expand Down

0 comments on commit 978db12

Please sign in to comment.