forked from rspec/rspec-rails
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
view and mailer groups are determined by path
- Loading branch information
1 parent
d2fb9f3
commit 7641ffe
Showing
4 changed files
with
34 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require "spec_helper" | ||
|
||
describe MailerExampleGroupBehaviour do | ||
it "is included in specs in ./spec/mailers" do | ||
stub_metadata( | ||
:example_group => {:file_path => "./spec/mailers/whatever_spec.rb:15"} | ||
) | ||
group = Rspec::Core::ExampleGroup.describe | ||
group.included_modules.should include(MailerExampleGroupBehaviour) | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require "spec_helper" | ||
|
||
describe ViewExampleGroupBehaviour do | ||
it "is included in specs in ./spec/views" do | ||
stub_metadata( | ||
:example_group => {:file_path => "./spec/views/whatever_spec.rb:15"} | ||
) | ||
group = Rspec::Core::ExampleGroup.describe | ||
group.included_modules.should include(ViewExampleGroupBehaviour) | ||
end | ||
end |