Permalink
Browse files

specs working

  • Loading branch information...
1 parent 6cc3953 commit f20891b67e1fa4f7e944f665c6d77d155dbfaa52 @eval committed Feb 2, 2012
Showing with 29 additions and 0 deletions.
  1. +2 −0 Gemfile
  2. +8 −0 Rakefile
  3. +1 −0 spec/spec.opts
  4. +8 −0 spec/spec_helper.rb
  5. +7 −0 spec/sudo_attr_accessibility/saa_spec.rb
  6. +3 −0 sudo_attr_accessibility.gemspec
View
@@ -1,3 +1,5 @@
source 'https://rubygems.org'
gemspec
+
+gem 'rake'
View
@@ -1,5 +1,13 @@
#!/usr/bin/env rake
require "bundler/gem_tasks"
+require "rspec/core/rake_task"
+
+RSpec::Core::RakeTask.new do |t|
+ t.rspec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
+end
+
+desc "Run the specs"
+task :default => :spec
desc 'Removes trailing whitespace'
task :whitespace do
View
@@ -0,0 +1 @@
+--color
View
@@ -0,0 +1,8 @@
+require "rubygems"
+require "bundler"
+Bundler.setup
+
+$:.unshift File.expand_path("../../lib", __FILE__)
+require "sudo_attr_accessibility"
+
+Bundler.require(:test)
@@ -0,0 +1,7 @@
+require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
+
+describe SudoAttrAccessibility do
+ it "should work" do
+ true.should == !false
+ end
+end
@@ -19,4 +19,7 @@ Gem::Specification.new do |gem|
gem.add_dependency "activesupport", ">= 3.0.0"
gem.add_dependency "activemodel", ">= 3.0.0"
+
+ gem.add_development_dependency "rspec", "~> 2.7.0"
+ gem.add_development_dependency "ZenTest", "~> 4.6.2"
end

0 comments on commit f20891b

Please sign in to comment.