spec/lib/dispatch-rider/publisher/configuration/destination_spec.rb in dispatch-rider-1.9.0 vs spec/lib/dispatch-rider/publisher/configuration/destination_spec.rb in dispatch-rider-2.0.0

- old
+ new

@@ -1,8 +1,9 @@ require 'spec_helper' describe DispatchRider::Publisher::Configuration::Destination do + subject { described_class.new("employee", attributes) } let(:attributes) do { "service" => "aws_sns", "channel" => "employee_updates", "options" => options @@ -14,11 +15,9 @@ "account" => "123456789", "region" => "us-east", "topic" => "employee-updates" } end - - subject { described_class.new("employee", attributes) } describe "#name" do describe '#name' do subject { super().name } it { is_expected.to eq("employee") }