Skip to content

Commit

Permalink
Setup rspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Azevedo Barnes committed Jan 20, 2016
1 parent 95c5676 commit fb7ccc7
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--color
--require spec_helper
--format documentation
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,7 @@ group :testing do
gem 'faker'
gem 'rubocop', require: false
end

group :development, :test do
gem 'rspec-rails', '~> 3.0'
end
19 changes: 19 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ GEM
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
diff-lcs (1.2.5)
domain_name (0.5.25)
unf (>= 0.0.5, < 1.0.0)
erubis (2.7.0)
Expand Down Expand Up @@ -204,6 +205,23 @@ GEM
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 3.0)
netrc (~> 0.7)
rspec-core (3.4.1)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-rails (3.4.0)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
rubocop (0.36.0)
parser (>= 2.3.0.0, < 3.0)
powerpack (~> 0.1)
Expand Down Expand Up @@ -306,6 +324,7 @@ DEPENDENCIES
pry-rails
rack-mini-profiler
rails (~> 4.2.0)
rspec-rails (~> 3.0)
rubocop
ruby-prof
sass-rails
Expand Down
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ require File.expand_path('../config/application', __FILE__)

Logan::Application.load_tasks

task default: [:rubocop, :test]
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = '--format progress'
end

task default: [:rubocop, :test, :spec]

0 comments on commit fb7ccc7

Please sign in to comment.