Skip to content

Commit

Permalink
Merge branch 'master' of github.com:middleman/middleman
Browse files Browse the repository at this point in the history
  • Loading branch information
tdreyno committed Mar 3, 2012
2 parents 1ee1a06 + ca28c7e commit e285045
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Expand Up @@ -2,7 +2,6 @@ rvm:
- 1.8.7
- 1.9.2
- 1.9.3
# - jruby
script: "bundle exec rake test"

branches:
Expand Down
6 changes: 6 additions & 0 deletions middleman-core/features/request_params.feature
@@ -0,0 +1,6 @@
Feature: Support request parameters
Scenario: Use request params in a template
Given the Server is running at "request-app"
When I go to "/index.html?say=Hello+World"
Then I should see "Quote Hello World"
Then I should see "Symbol Hello World"
Empty file.
3 changes: 3 additions & 0 deletions middleman-core/fixtures/request-app/source/index.html.erb
@@ -0,0 +1,3 @@
Dot <%= request.params.say %>
Quote <%= request.params["say"] %>
Symbol <%= request.params[:say] %>
5 changes: 4 additions & 1 deletion middleman-core/lib/middleman-core/base.rb
Expand Up @@ -265,7 +265,10 @@ def current_path
# @return [void]
def current_path=(path)
@_current_path = path
@request = ::Thor::CoreExt::HashWithIndifferentAccess.new({ :path => path })
@request = ::Thor::CoreExt::HashWithIndifferentAccess.new({
:path => path,
:params => req ? ::Thor::CoreExt::HashWithIndifferentAccess.new(req.params) : {}
})
end

# Initialize the Middleman project
Expand Down
6 changes: 5 additions & 1 deletion middleman-more/features/sass_partials.feature
Expand Up @@ -80,4 +80,8 @@ Feature: Sass Updates and Partials
"""
When I go to "/stylesheets/main2.css"
Then I should see "color: blue;"
Then I should see "font-size: 18px"
Then I should see "font-size: 18px"

Scenario: Sass partials should work when building
Given a successfully built app at "preview-app"
Then the file "build/stylesheets/main.css" should contain "font-size: 18px"

0 comments on commit e285045

Please sign in to comment.