Sha256: 5f8a7ee9375a95a630fa48f8c696c2b17b6c0261bcbc18c5d5a00451cd20fde1

Contents?: true

Size: 508 Bytes

Versions: 15

Compression:

Stored size: 508 Bytes

Contents

require 'spec_helper'

describe MB::Gear::MySQL do
  subject { described_class }

  it "is registered with MB::Gear" do
    MB::Gear.all.should include(subject)
  end

  it "has the inferred keyword ':mysql' from it's Class name" do
    subject.keyword.should eql(:mysql)
  end

  describe "#action" do
    subject { described_class.new }

    it "returns a Gear::MySQL::Action" do
      subject.action("select * from boxes", data_bag: {name: "creds"}).should be_a(MB::Gear::MySQL::Action)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
motherbrain-1.5.0 spec/unit/mb/gears/mysql_spec.rb
motherbrain-1.4.0 spec/unit/mb/gears/mysql_spec.rb
motherbrain-1.3.0 spec/unit/mb/gears/mysql_spec.rb
motherbrain-1.2.1 spec/unit/mb/gears/mysql_spec.rb
motherbrain-1.2.0 spec/unit/mb/gears/mysql_spec.rb
motherbrain-1.1.3 spec/unit/mb/gears/mysql_spec.rb
motherbrain-1.1.2 spec/unit/mb/gears/mysql_spec.rb
motherbrain-1.1.1 spec/unit/mb/gears/mysql_spec.rb
motherbrain-1.1.0 spec/unit/mb/gears/mysql_spec.rb
motherbrain-1.0.0 spec/unit/mb/gears/mysql_spec.rb
motherbrain-0.14.5 spec/unit/mb/gears/mysql_spec.rb
motherbrain-0.14.4 spec/unit/mb/gears/mysql_spec.rb
motherbrain-0.14.3 spec/unit/mb/gears/mysql_spec.rb
motherbrain-0.14.2 spec/unit/mb/gears/mysql_spec.rb
motherbrain-0.13.1 spec/unit/mb/gears/mysql_spec.rb