Skip to content

Commit

Permalink
Rename Entry class
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanVqz committed Jan 21, 2023
1 parent 3713cdf commit f77bb5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/noko_cli/entries.rb → lib/noko_cli/entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module NokoCli
# This is an entry resource, which could be listed
class Entries
class Entry
attr_reader :conn

def initialize(config:)
Expand Down
2 changes: 1 addition & 1 deletion lib/noko_cli/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module NokoCli
class Run # :nodoc:
def self.call
@config ||= Config.new
Entries.new(config: @config).list
Entry.new(config: @config).list
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "faraday"
require "json"

RSpec.describe NokoCli::Entries do
RSpec.describe NokoCli::Entry do
describe "#list" do
let(:stubs) do
stub_request("current_user/entries", response: stub_response(fixture: "entries/list"))
Expand Down

0 comments on commit f77bb5c

Please sign in to comment.