Sha256: 1b5f8768b2ad14dd176507e6d5b073a36e6353cdf6d1bfd9ce41364b79173ba0
Contents?: true
Size: 1.7 KB
Versions: 3
Compression:
Stored size: 1.7 KB
Contents
require 'rubygems' require "bundler/gem_tasks" require 'bundler/setup' require 'rake' namespace :ruby_app do desc 'Monitor RubyApp' task :monitor do |task| system("cd ./lib/ruby_app; > ./log/application.log; clear; tail -f ./log/application.log") end desc 'Create RubyApp console' task :console do |task| system("cd ./lib/ruby_app; clear; bundle exec ../../bin/ruby_app console") end desc 'Run RubyApp' task :run do |task| system("cd ./lib/ruby_app; clear; bundle exec ../../bin/ruby_app run") end namespace :clear do desc 'Clear OpenID files' task :open_id do |task| system("rm -rf ./lib/ruby_app/elements/pages/authentication/open_id/associations") system("rm -rf ./lib/ruby_app/elements/pages/authentication/open_id/nonces") system("rm -rf ./lib/ruby_app/elements/pages/authentication/open_id/temp") end end namespace :test do desc 'Run feature tests for the given feature file or all features files if no argument is provided' task :features, :file do |task, arguments| system("bundle exec cucumber --format pretty --tags ~@broken #{arguments.file}") end desc 'Run RSpec tests' task :specs, :file, :line do |task, arguments| if arguments.file if arguments.line system("bundle exec rspec #{arguments.file} --line_number=#{arguments.line} --format=documentation --colour") else system("bundle exec rspec #{arguments.file} --format=documentation --colour") end else system("bundle exec rspec spec/ --format=documentation --colour") end end desc 'Run all tests' task :all => ['ruby_app:test:specs', 'ruby_app:test:features'] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
RubyApp-0.0.8 | rakefile |
RubyApp-0.0.7 | rakefile |
RubyApp-0.0.6 | rakefile |