Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jirutka committed Dec 2, 2017
1 parent 06ad445 commit b18fd50
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 15 deletions.
1 change: 0 additions & 1 deletion Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ guard :rspec, cmd: 'bundle exec rspec' do
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }
end

2 changes: 1 addition & 1 deletion lib/kosapi_client/entity/exam.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Exam < BaseEntity
map_data :start_date, Time
map_data :substitutes, Enum
map_data :superior, Link
map_data :term_type, Enum
map_data :term_type, Enum

end
end
Expand Down
1 change: 0 additions & 1 deletion lib/kosapi_client/entity/id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ def self.parse(str)
end
end
end

1 change: 0 additions & 1 deletion lib/kosapi_client/entity/parallel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ class Parallel < BaseEntity
end
end
end

1 change: 0 additions & 1 deletion lib/kosapi_client/oauth2_http_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ def token
end
end
end

1 change: 0 additions & 1 deletion lib/kosapi_client/request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,3 @@ def id_set?

end
end

2 changes: 1 addition & 1 deletion lib/kosapi_client/resource/course_events_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def attendees

end
end
end
end
2 changes: 1 addition & 1 deletion lib/kosapi_client/resource/exams_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def attendees

end
end
end
end
1 change: 0 additions & 1 deletion lib/kosapi_client/resource/parallels_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ def students
end
end
end

2 changes: 1 addition & 1 deletion spec/integration/exams_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'spec_helper'

describe 'Exams resource', :vcr, :integration do

subject(:client) { create_kosapi_client }

it 'fetches exams' do
Expand Down
10 changes: 5 additions & 5 deletions spec/support/client_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module ClientHelpers

def create_kosapi_client
credentials = {
client_id: ENV['KOSAPI_OAUTH_CLIENT_ID'],
client_secret: ENV['KOSAPI_OAUTH_CLIENT_SECRET']
credentials = {
client_id: ENV['KOSAPI_OAUTH_CLIENT_ID'],
client_secret: ENV['KOSAPI_OAUTH_CLIENT_SECRET']
}
KOSapiClient.new(credentials)
end
end

end

0 comments on commit b18fd50

Please sign in to comment.