Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from thoughtbot/mm-mattr_accessor-requiring
lib/high_voltage.rb should be able to be required.
- Loading branch information
Showing
3 changed files
with
11 additions
and
1 deletion.
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,7 +1,11 @@ | |||
require 'spec_helper' | require 'minimal_spec_helper' | ||
|
|
||
describe HighVoltage do | describe HighVoltage do | ||
it 'should be valid' do | it 'should be valid' do | ||
HighVoltage.should be_a(Module) | HighVoltage.should be_a(Module) | ||
end | end | ||
|
|||
it 'should be loadable without preloading rails' do | |||
expect { require 'high_voltage' }.not_to raise_error | |||
end | |||
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
RSpec.configure do |config| | |||
require 'rspec/expectations' | |||
config.include RSpec::Matchers | |||
config.mock_with :rspec | |||
end |