Skip to content

Commit

Permalink
Adds rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
wallace committed Mar 27, 2012
1 parent cf2e8f9 commit 90ed4c0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Rakefile
@@ -1,2 +1,8 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new

task :default => :spec
task :test => :spec
7 changes: 7 additions & 0 deletions spec/lib/yaml_string_spec.rb
@@ -0,0 +1,7 @@
require "spec_helper"

describe YamlString do
it "should exist" do
YamlString.new.should be_a(YamlString)
end
end
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,8 @@
require 'yaml_string'
require 'mocha'
require 'fakefs/spec_helpers'

RSpec.configure do |c|
c.mock_with :mocha
c.include FakeFS::SpecHelpers, fakefs: true
end
4 changes: 4 additions & 0 deletions yaml_string.gemspec
Expand Up @@ -14,4 +14,8 @@ Gem::Specification.new do |gem|
gem.name = "yaml_string"
gem.require_paths = ["lib"]
gem.version = YamlString::VERSION

gem.add_development_dependency 'fakefs'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'rspec'
end

0 comments on commit 90ed4c0

Please sign in to comment.