Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1552fe8
commit 03daf23
Showing
4 changed files
with
19 additions
and
8 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
module GemExample | |||
module UsefulFunctionality | |||
def self.DoSomethingUseful(string) | |||
"#{string.upcase} is now useful" | |||
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,7 @@ | |||
require 'spec_helper' | |||
|
|||
describe GemExample::UsefulFunctionality do | |||
it 'does the useful' do | |||
expect(GemExample::UsefulFunctionality.DoSomethingUseful('Before')).to eq 'BEFORE is now useful' | |||
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 |
---|---|---|---|
@@ -1,11 +1,7 @@ | |||
require 'spec_helper' | require 'spec_helper' | ||
|
|
||
describe GemExample do | describe GemExample do | ||
it 'has a version number' do | it 'has a version number' do | ||
expect(GemExample::VERSION).not_to be nil | expect(GemExample::VERSION).not_to be nil | ||
end | end | ||
|
end | ||
it 'does something useful' do | |||
expect(false).to eq(true) | |||
end | |||
end |