-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- #74 I introduced this bug in b65a233, basically the `SpaceController#show` was not finding by domain, so it would give an empty page. This also adds support for using [`assert_select`](http://api.rubyonrails.org/classes/ActionDispatch/IntegrationTest.html) in request specs, so long as the `subject` is a `TestResponse`.
- Loading branch information
Showing
6 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
<%- if space.entrance.present? %> | ||
<%= render space.entrance %> | ||
<%- end %> | ||
<%- end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module DomHelpers | ||
def record_identifier | ||
ActionView::RecordIdentifier | ||
end | ||
delegate :dom_id, to: :record_identifier | ||
|
||
def test_response | ||
TestResponse.new(response) | ||
end | ||
|
||
class TestResponse < SimpleDelegator | ||
def media_type?(expected_media_type) | ||
media_type == Mime[expected_media_type] | ||
end | ||
end | ||
end |