mirror of
https://github.com/plashchynski/crono.git
synced 2026-04-24 17:58:39 +02:00
Add Rspec
This commit is contained in:
50
Gemfile.lock
Normal file
50
Gemfile.lock
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
PATH
|
||||||
|
remote: .
|
||||||
|
specs:
|
||||||
|
periodicity (0.0.1)
|
||||||
|
activejob
|
||||||
|
|
||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
activejob (4.2.0)
|
||||||
|
activesupport (= 4.2.0)
|
||||||
|
globalid (>= 0.3.0)
|
||||||
|
activesupport (4.2.0)
|
||||||
|
i18n (~> 0.7)
|
||||||
|
json (~> 1.7, >= 1.7.7)
|
||||||
|
minitest (~> 5.1)
|
||||||
|
thread_safe (~> 0.3, >= 0.3.4)
|
||||||
|
tzinfo (~> 1.1)
|
||||||
|
diff-lcs (1.2.5)
|
||||||
|
globalid (0.3.3)
|
||||||
|
activesupport (>= 4.1.0)
|
||||||
|
i18n (0.7.0)
|
||||||
|
json (1.8.2)
|
||||||
|
minitest (5.5.1)
|
||||||
|
rake (10.4.2)
|
||||||
|
rspec (3.2.0)
|
||||||
|
rspec-core (~> 3.2.0)
|
||||||
|
rspec-expectations (~> 3.2.0)
|
||||||
|
rspec-mocks (~> 3.2.0)
|
||||||
|
rspec-core (3.2.1)
|
||||||
|
rspec-support (~> 3.2.0)
|
||||||
|
rspec-expectations (3.2.0)
|
||||||
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
|
rspec-support (~> 3.2.0)
|
||||||
|
rspec-mocks (3.2.1)
|
||||||
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
|
rspec-support (~> 3.2.0)
|
||||||
|
rspec-support (3.2.2)
|
||||||
|
thread_safe (0.3.4)
|
||||||
|
tzinfo (1.2.2)
|
||||||
|
thread_safe (~> 0.1)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
ruby
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
bundler (>= 1.0.0)
|
||||||
|
periodicity!
|
||||||
|
rake
|
||||||
|
rspec (~> 3.0)
|
||||||
6
Rakefile
6
Rakefile
@@ -1,2 +1,8 @@
|
|||||||
require 'bundler'
|
require 'bundler'
|
||||||
Bundler::GemHelper.install_tasks
|
Bundler::GemHelper.install_tasks
|
||||||
|
|
||||||
|
require 'rspec/core/rake_task'
|
||||||
|
|
||||||
|
RSpec::Core::RakeTask.new('spec')
|
||||||
|
|
||||||
|
task default: :spec
|
||||||
|
|||||||
@@ -7,14 +7,15 @@ Gem::Specification.new do |s|
|
|||||||
s.authors = ["Dzmitry Plashchynski"]
|
s.authors = ["Dzmitry Plashchynski"]
|
||||||
s.email = ["plashchynski@gmail.com"]
|
s.email = ["plashchynski@gmail.com"]
|
||||||
s.homepage = "https://github.com/plashchynski/periodicity"
|
s.homepage = "https://github.com/plashchynski/periodicity"
|
||||||
gem.description = gem.summary = "Job scheduler for Rails"
|
s.description = s.summary = "Job scheduler for Rails"
|
||||||
|
|
||||||
s.required_rubygems_version = ">= 1.3.6"
|
s.required_rubygems_version = ">= 1.3.6"
|
||||||
s.rubyforge_project = "periodicity"
|
s.rubyforge_project = "periodicity"
|
||||||
|
|
||||||
s.add_runtime_dependency "activejob"
|
s.add_runtime_dependency "activejob"
|
||||||
|
s.add_development_dependency "rake"
|
||||||
s.add_development_dependency "bundler", ">= 1.0.0"
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
||||||
s.add_development_dependency "rspec"
|
s.add_development_dependency "rspec", "~> 3.0"
|
||||||
|
|
||||||
s.files = `git ls-files`.split("\n")
|
s.files = `git ls-files`.split("\n")
|
||||||
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
||||||
|
|||||||
7
spec/spec_helper.rb
Normal file
7
spec/spec_helper.rb
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
require 'bundler/setup'
|
||||||
|
Bundler.setup
|
||||||
|
|
||||||
|
require 'periodicity'
|
||||||
|
|
||||||
|
RSpec.configure do |config|
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user