Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Rm rails in test dependence
Browse files Browse the repository at this point in the history
  • Loading branch information
xinhui committed Jan 29, 2016
1 parent dd1ac0c commit 0f132ec
Show file tree
Hide file tree
Showing 48 changed files with 25 additions and 871 deletions.
76 changes: 14 additions & 62 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,83 +2,35 @@ PATH
remote: .
specs:
codifligne (0.0.1)
nokogiri (~> 1.6)

GEM
remote: https://rubygems.org/
specs:
actionpack (4.2.5.1)
actionview (= 4.2.5.1)
activesupport (= 4.2.5.1)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.5.1)
activesupport (= 4.2.5.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activesupport (4.2.5.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.4.0)
awesome_print (1.6.1)
builder (3.2.2)
crack (0.4.3)
safe_yaml (~> 1.0.0)
diff-lcs (1.2.5)
erubis (2.7.0)
hashdiff (0.2.3)
i18n (0.7.0)
json (1.8.3)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mini_portile2 (2.0.0)
minitest (5.8.4)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.5.1)
actionpack (= 4.2.5.1)
activesupport (= 4.2.5.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.5.0)
rspec-core (3.1.7)
rspec-support (~> 3.1.0)
rspec-expectations (3.1.2)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
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.1.0)
rspec-mocks (3.1.3)
rspec-support (~> 3.1.0)
rspec-rails (3.1.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.1.0)
rspec-expectations (~> 3.1.0)
rspec-mocks (~> 3.1.0)
rspec-support (~> 3.1.0)
rspec-support (3.1.2)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
safe_yaml (1.0.4)
thor (0.19.1)
thread_safe (0.3.5)
tzinfo (1.2.2)
thread_safe (~> 0.1)
webmock (1.22.6)
addressable (>= 2.3.6)
crack (>= 0.3.2)
Expand All @@ -92,7 +44,7 @@ DEPENDENCIES
bundler (~> 1.11)
codifligne!
rake (~> 10.0)
rspec-rails (~> 3.1)
rspec (~> 3.4)
webmock (~> 1.22.6)

BUNDLED WITH
Expand Down
5 changes: 4 additions & 1 deletion codifligne.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ Gem::Specification.new do |s|
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.markdown"]
s.required_ruby_version = '>= 2.0.0'

s.add_dependency "nokogiri", "~> 1.6"

s.add_development_dependency "awesome_print", "~> 1.6"
s.add_development_dependency "bundler", "~> 1.11"
s.add_development_dependency "rake", "~> 10.0"
s.add_development_dependency "rspec-rails", "~>3.1"
s.add_development_dependency "webmock", "~> 1.22"
s.add_development_dependency "rspec", '~> 3.4'
end
2 changes: 1 addition & 1 deletion spec/codifligne/codifligne_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'rails_helper'
require 'spec_helper'

describe Codifligne do
let(:client) { Codifligne::API.new }
Expand Down
53 changes: 0 additions & 53 deletions spec/rails_helper.rb

This file was deleted.

50 changes: 6 additions & 44 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'codifligne'
require 'webmock/rspec'

# This file was generated by the `rails generate rspec:install` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause this
Expand Down Expand Up @@ -37,49 +40,8 @@
# `true` in RSpec 4.
mocks.verify_partial_doubles = true
end
end

# The settings below are suggested to provide a good initial experience
# with RSpec, but feel free to customize to your heart's content.
=begin
# These two settings work together to allow you to limit a spec run
# to individual examples or groups you care about by tagging them with
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
# get run.
config.filter_run :focus
config.run_all_when_everything_filtered = true
# Limits the available syntax to the non-monkey patched syntax that is recommended.
# For more details, see:
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
config.disable_monkey_patching!
# Many RSpec users commonly either run the entire suite or an individual
# file, and it's useful to allow more verbose output when running an
# individual spec file.
if config.files_to_run.one?
# Use the documentation formatter for detailed output,
# unless a formatter has already been configured
# (e.g. via a command-line flag).
config.default_formatter = 'doc'
end
# Print the 10 slowest examples and example groups at the
# end of the spec run, to help surface which specs are running
# particularly slow.
config.profile_examples = 10
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.
# --seed 1234
config.order = :random
# Seed global randomization in this process using the `--seed` CLI option.
# Setting this allows you to use `--seed` to deterministically reproduce
# test failures related to randomization by passing the same `--seed` value
# as the one that triggered the failure.
Kernel.srand config.seed
=end
def fixture_path
File.expand_path('../fixtures', __FILE__)
end
28 changes: 0 additions & 28 deletions spec/test_app/README.rdoc

This file was deleted.

6 changes: 0 additions & 6 deletions spec/test_app/Rakefile

This file was deleted.

Empty file.
13 changes: 0 additions & 13 deletions spec/test_app/app/assets/javascripts/application.js

This file was deleted.

15 changes: 0 additions & 15 deletions spec/test_app/app/assets/stylesheets/application.css

This file was deleted.

5 changes: 0 additions & 5 deletions spec/test_app/app/controllers/application_controller.rb

This file was deleted.

Empty file.
2 changes: 0 additions & 2 deletions spec/test_app/app/helpers/application_helper.rb

This file was deleted.

Empty file removed spec/test_app/app/mailers/.keep
Empty file.
Empty file removed spec/test_app/app/models/.keep
Empty file.
Empty file.
14 changes: 0 additions & 14 deletions spec/test_app/app/views/layouts/application.html.erb

This file was deleted.

3 changes: 0 additions & 3 deletions spec/test_app/bin/bundle

This file was deleted.

4 changes: 0 additions & 4 deletions spec/test_app/bin/rails

This file was deleted.

4 changes: 0 additions & 4 deletions spec/test_app/bin/rake

This file was deleted.

29 changes: 0 additions & 29 deletions spec/test_app/bin/setup

This file was deleted.

4 changes: 0 additions & 4 deletions spec/test_app/config.ru

This file was deleted.

Loading

0 comments on commit 0f132ec

Please sign in to comment.