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
Showing
2 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require 'spec_helper' | ||
describe Gemrat do | ||
before do | ||
test_gemfile = File.new("TestGemfile", "w") | ||
test_gemfile.puts ("https://rubygems.org'\n\n# Specify your gem's dependencies in gemrat.gemspec\ngem 'rspec', '2.13.0'\n") | ||
test_gemfile.close | ||
end | ||
|
||
after do | ||
File.delete("TestGemfile") | ||
end | ||
|
||
it "example" do | ||
`gemrat sinatra` | ||
gemfile_contents = File.open('TestGemfile').read | ||
gemfile_contents.should include("gem 'sinatra', '1.4.2'") | ||
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,9 @@ | ||
require 'rubygems' | ||
require 'bundler/setup' | ||
|
||
require 'gemrat' # and any other gems you need | ||
require 'pry' | ||
|
||
RSpec.configure do |config| | ||
# some (optional) config here | ||
end |