Skip to content

Commit

Permalink
Merge pull request #39 from OpenSourcePolitics/chores/max-decidim-ver…
Browse files Browse the repository at this point in the history
…sion

Add constraint to Decidim Gem version
  • Loading branch information
armandfardeau authored Jan 4, 2023
2 parents f9bc63d + ec8eb2e commit 7f17b3c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PATH
remote: .
specs:
decidim-spam_detection (2.0.1)
decidim-core (~> 0.26)
decidim-spam_detection (3.0.0)
decidim-core (~> 0.26.0)

GEM
remote: https://rubygems.org/
Expand Down
4 changes: 2 additions & 2 deletions lib/decidim/spam_detection/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module Decidim
# This holds the decidim-spam_detection version.
module SpamDetection
def self.version
"2.0.1"
"3.0.0"
end

def self.decidim_version
"0.26"
"0.26.0"
end
end
end
Expand Down
27 changes: 27 additions & 0 deletions spec/lib/decidim/spam_detection/version_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# frozen_string_literal: true

require "spec_helper"

module Decidim
module SpamDetection
describe "Version" do
let(:described_class) { Decidim::SpamDetection }

describe ".version" do
it "returns a string version" do
expect(described_class.version).to be_kind_of(String)
end
end

describe ".decidim_version" do
it "returns a string version" do
expect(described_class.decidim_version).to be_kind_of(String)
end

it "returns a valid version" do
expect(described_class.decidim_version).to match(/\d+\.\d+/)
end
end
end
end
end

0 comments on commit 7f17b3c

Please sign in to comment.