Sha256: da0291b3eaa36d57acc040c955dc6ce5023e06e64504edf1b805d453fcdb9732
Contents?: true
Size: 736 Bytes
Versions: 1
Compression:
Stored size: 736 Bytes
Contents
require "spec_helper" describe "installing a plugin" do before { @timeout = 60 } When { r "trivium install plugin trivium-timing --path #{fixture 'plugins/timing-plugin'}" } Given(:fixtures) { Pathname(__FILE__).dirname.join('') } Then { plugin_list == ['trivium-timing'] } And { trivial_timing == '1s'} describe "uninstalling the plugin" do When { r "trivium uninstall plugin trivium-timing" } Then { plugin_list == [] } describe "trying to invoke the command" do When(:result) { r "trivium time" } Then { result.should have_failed } end end def plugin_list r "trivium show plugins" all_stdout.split "\n" end def trivial_timing r "trivium time" all_stdout end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mvcli-0.1.0 | spec/features/managing_plugins_spec.rb |