Parent

Syckle::Plugins::RSpec

RSpec Plugin

Can automatically run if there is a spec/ directory.

Attributes

command[RW]

Spec command to use. Defaults to ‘spec’.

format[RW]

Format of RSpec output.

loadpath[RW]

Paths to add $LOAD_PATH. Defaults to [‘lib’].

require[RW]

Lib(s) to require before excuting specifications.

rubyopt[RW]

Additional options to pass to the ruby command.

specopt[RW]

Additional commandline options for spec command.

specs[RW]

File glob(s) of spec files. Defaults to [‘spec/**/*_spec.rb’, ‘spec/*/spec_.rb’].

warning[RW]

Whether to show warnings or not. Default is false.

Public Instance Methods

document() click to toggle source

Run all specs with text output

# File lib/plugins/syckle/rspec.rb, line 90
def document
  shellout('specdoc')
end
initialize_defaults() click to toggle source
# File lib/plugins/syckle/rspec.rb, line 58
def initialize_defaults
  @loadpath = metadata.loadpath

  @specs    = ['spec/**/*_spec.rb', 'spec/**/spec_*.rb']
  @require  = []
  @warning  = false
  @command  = 'spec'
end
runspecs() click to toggle source

Run all specs with basic output.

Options:

specs     File glob(s) of spec files. Defaults to ['spec/**/*_spec.rb', 'spec/**/spec_*.rb'].
loadpath  Paths to add $LOAD_PATH. Defaults to ['lib'].
live      Ignore loadpath, use installed libraries instead. Default is false.
require   Lib(s) to require before excuting specifications.
warning   Whether to show warnings or not. Default is false.
command   Spec command to use. Defaults to 'spec'.
format    Format of RSpec output.
rubyopt   Additional options to pass to the ruby command.
specopt   Additional commandline options for spec command.
# File lib/plugins/syckle/rspec.rb, line 84
def runspecs
  shellout
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.