Skip to content

Commit

Permalink
Merge pull request #41 from AlchemyCMS/update-test-for-json-api
Browse files Browse the repository at this point in the history
Fix pagination related specs
  • Loading branch information
tvdeyen authored Feb 18, 2021
2 parents d004e3c + c556d79 commit 10f435c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
end

require "alchemy/version"
require "factory_bot"
if Alchemy.gem_version >= Gem::Version.new("5.2.0")
require "factory_bot"
require "alchemy/test_support"

FactoryBot.definition_file_paths.concat(Alchemy::TestSupport.factory_paths)
Expand Down
3 changes: 2 additions & 1 deletion spec/requests/alchemy/json_api/layout_pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:public,
:layoutpage,
urlname: nil,
title: "Footer"
title: "Footer",
)
end

Expand Down Expand Up @@ -94,6 +94,7 @@
"last" => 3,
"next" => 3,
"prev" => 1,
"records" => 3,
},
"total" => 3,
})
Expand Down
1 change: 1 addition & 0 deletions spec/requests/alchemy/json_api/pages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"last" => 4,
"next" => 3,
"prev" => 1,
"records" => 4,
},
"total" => 4,
})
Expand Down

0 comments on commit 10f435c

Please sign in to comment.