Skip to content

Commit

Permalink
Merge pull request #62 from novuhq/revert-51-fix/update-test-suites
Browse files Browse the repository at this point in the history
Revert "fix: update test suite to use named argument during client initialization"
  • Loading branch information
unicodeveloper authored Jan 16, 2024
2 parents 523591b + 18a3edc commit 3963e08
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 17 deletions.
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ require "novu"
# Pry.start

require "irb"
IRB.start(__FILE__)
IRB.start(__FILE__)
3 changes: 2 additions & 1 deletion spec/blueprints_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Blueprints do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }

describe "#get_blueprint" do
Expand Down
3 changes: 2 additions & 1 deletion spec/changes_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Changes do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }

describe "#changes" do
Expand Down
3 changes: 2 additions & 1 deletion spec/environments_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Environments do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }

describe "#environment" do
Expand Down
3 changes: 2 additions & 1 deletion spec/events_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Events do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }

describe "#trigger_event" do
Expand Down
3 changes: 2 additions & 1 deletion spec/execution_details_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::ExecutionDetails do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }

describe "#execution_details" do
Expand Down
3 changes: 2 additions & 1 deletion spec/feeds_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Feeds do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }

describe "#create_feed" do
Expand Down
3 changes: 2 additions & 1 deletion spec/inbound_parse_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::InboundParse do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }
let(:subscriber_id) { "63f71b3ef067290fa669106d" }

Expand Down
3 changes: 2 additions & 1 deletion spec/integrations_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Integrations do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }

describe "#integrations" do
Expand Down
3 changes: 2 additions & 1 deletion spec/layouts_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Layouts do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }
let(:layout_id) { "63f71b3ef067290fa669106d" }

Expand Down
3 changes: 2 additions & 1 deletion spec/messsages_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Messages do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }

describe "#message" do
Expand Down
3 changes: 2 additions & 1 deletion spec/notification_groups_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::NotificationGroups do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }

describe "#create_notification_group" do
Expand Down
3 changes: 2 additions & 1 deletion spec/notification_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Notification do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }

describe "#notifications" do
Expand Down
3 changes: 2 additions & 1 deletion spec/notification_templates_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::NotificationTemplates do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }
let(:template_id) { "63f71b3ef067290fa669106d" }

Expand Down
3 changes: 2 additions & 1 deletion spec/subscribers_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Subscribers do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }
let(:subscriber_id) { "63f71b3ef067290fa669106d" }

Expand Down
3 changes: 2 additions & 1 deletion spec/tenants_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Tenants do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }
let(:identifier) { "a_unique_string" }

Expand Down
3 changes: 2 additions & 1 deletion spec/topics_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

require "spec_helper"
require_relative "../lib/novu"

RSpec.describe Novu::Api::Topics do
let(:access_token) { "1234567890" }
let(:client) { Novu::Client.new(access_token: access_token) }
let(:client) { Novu::Client.new(access_token) }
let(:base_uri) { "https://api.novu.co/v1" }
let(:topic_key) { "test-topic" }

Expand Down

0 comments on commit 3963e08

Please sign in to comment.