spec/unit/berkshelf/formatters/base_spec.rb in berkshelf-5.5.0 vs spec/unit/berkshelf/formatters/base_spec.rb in berkshelf-5.6.0
- old
+ new
@@ -1,35 +1,35 @@
-require 'spec_helper'
+require "spec_helper"
module Berkshelf
describe BaseFormatter do
- it 'has abstract methods for all the messaging modes' do
- expect {
- subject.install('my_coobook','1.2.3','http://community')
- }.to raise_error(AbstractFunction)
+ it "has abstract methods for all the messaging modes" do
+ expect do
+ subject.install("my_coobook", "1.2.3", "http://community")
+ end.to raise_error(AbstractFunction)
- expect {
- subject.use('my_coobook','1.2.3')
- }.to raise_error(AbstractFunction)
+ expect do
+ subject.use("my_coobook", "1.2.3")
+ end.to raise_error(AbstractFunction)
- expect {
- subject.use('my_coobook','1.2.3','http://community')
- }.to raise_error(AbstractFunction)
+ expect do
+ subject.use("my_coobook", "1.2.3", "http://community")
+ end.to raise_error(AbstractFunction)
- expect {
- subject.uploaded('my_coobook','1.2.3','http://chef_server')
- }.to raise_error(AbstractFunction)
+ expect do
+ subject.uploaded("my_coobook", "1.2.3", "http://chef_server")
+ end.to raise_error(AbstractFunction)
- expect {
- subject.msg('something you to know')
- }.to raise_error(AbstractFunction)
+ expect do
+ subject.msg("something you to know")
+ end.to raise_error(AbstractFunction)
- expect {
- subject.error('whoa this is bad')
- }.to raise_error(AbstractFunction)
+ expect do
+ subject.error("whoa this is bad")
+ end.to raise_error(AbstractFunction)
- expect {
- subject.fetch(double('dependency'))
- }.to raise_error(AbstractFunction)
+ expect do
+ subject.fetch(double("dependency"))
+ end.to raise_error(AbstractFunction)
end
end
end