Sha256: cb9f2a00861c0e684efabc4049e82e2b1f6171ca5b66a399bbfeab5749b5aba0

Contents?: true

Size: 362 Bytes

Versions: 13

Compression:

Stored size: 362 Bytes

Contents

#!/usr/bin/env ruby

ENV["RAILS_ENV"] ||= "test"
require "pathname"
require "cypress-rails"
require Pathname.new(CypressRails::Config.new.dir).join("config/environment")

command = ARGV[0]
case command
when "init"
  CypressRails::Init.new.call
when "open"
  CypressRails::Open.new.call
when "run"
  passed = CypressRails::Run.new.call
  exit 1 unless passed
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cypress-rails-0.6.1 exe/cypress-rails
cypress-rails-0.6.0 exe/cypress-rails
cypress-rails-0.5.5 exe/cypress-rails
cypress-rails-0.5.4 exe/cypress-rails
cypress-rails-0.5.3 exe/cypress-rails
cypress-rails-0.5.2 exe/cypress-rails
cypress-rails-0.5.1 exe/cypress-rails
cypress-rails-0.5.0 exe/cypress-rails
cypress-rails-0.4.2 exe/cypress-rails
cypress-rails-0.4.1 exe/cypress-rails
cypress-rails-0.4.0 exe/cypress-rails
cypress-rails-0.3.0 exe/cypress-rails
cypress-rails-0.2.0 exe/cypress-rails