Sha256: 4276ed675fa0b2e79f2975dd8cbccf328f71669ddc87726ef200d30f5fdc0a66

Contents?: true

Size: 368 Bytes

Versions: 3

Compression:

Stored size: 368 Bytes

Contents

#!/usr/bin/env ruby

ENV["RAILS_ENV"] ||= "test"
require "pathname"
require "cypress-rails"
require Pathname.new(CypressRails::Config.new.rails_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

3 entries across 3 versions & 1 rubygems

Version Path
cypress-rails-0.8.0.rc1 exe/cypress-rails
cypress-rails-0.7.1 exe/cypress-rails
cypress-rails-0.7.0 exe/cypress-rails