Permalink
Browse files

added useful gem functionality

  • Loading branch information...
astockwell committed Apr 21, 2015
1 parent 1552fe8 commit 03daf230b096dede9ee594ecb73fa8bee26b25bb
View
@@ -1,5 +1,6 @@
require "gem_example/version"
require "gem_example/cli/application"
require "gem_example/useful_functionality"
module GemExample
# Your code goes here...
@@ -0,0 +1,7 @@
module GemExample
module UsefulFunctionality
def self.DoSomethingUseful(string)
"#{string.upcase} is now useful"
end
end
end
@@ -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
View
@@ -1,11 +1,7 @@
require 'spec_helper'
describe GemExample do
it 'has a version number' do
expect(GemExample::VERSION).not_to be nil
end
it 'does something useful' do
expect(false).to eq(true)
end
end
it 'has a version number' do
expect(GemExample::VERSION).not_to be nil
end
end

0 comments on commit 03daf23

Please sign in to comment.