diff --git a/spec/models/article_spec.rb b/spec/models/article_spec.rb index 54ac407a..8526332e 100644 --- a/spec/models/article_spec.rb +++ b/spec/models/article_spec.rb @@ -176,7 +176,7 @@ RSpec.describe Article, type: :model, versioning: true do end end - context "#destroy" do + describe "#destroy" do it "creates a version record" do article = described_class.create article.destroy diff --git a/spec/models/on/create_spec.rb b/spec/models/on/create_spec.rb index 1fc49ed3..fbf1593f 100644 --- a/spec/models/on/create_spec.rb +++ b/spec/models/on/create_spec.rb @@ -15,7 +15,7 @@ module On end end - context "#paper_trail_event" do + describe "#paper_trail_event" do it "rembembers the custom event name" do record = described_class.new record.paper_trail_event = "banana" diff --git a/spec/models/on/destroy_spec.rb b/spec/models/on/destroy_spec.rb index 627e7994..044c0aeb 100644 --- a/spec/models/on/destroy_spec.rb +++ b/spec/models/on/destroy_spec.rb @@ -15,7 +15,7 @@ module On end end - context "#paper_trail_event" do + describe "#paper_trail_event" do it "rembembers the custom event name" do record = described_class.create(name: "Alice") record.paper_trail_event = "banana" diff --git a/spec/models/on/update_spec.rb b/spec/models/on/update_spec.rb index 2bde6290..82b45663 100644 --- a/spec/models/on/update_spec.rb +++ b/spec/models/on/update_spec.rb @@ -15,7 +15,7 @@ module On end end - context "#paper_trail_event" do + describe "#paper_trail_event" do it "rembembers the custom event name" do record = described_class.create(name: "Alice") record.paper_trail_event = "banana" diff --git a/spec/paper_trail/model_spec.rb b/spec/paper_trail/model_spec.rb index 58642f10..04c5244f 100644 --- a/spec/paper_trail/model_spec.rb +++ b/spec/paper_trail/model_spec.rb @@ -577,7 +577,7 @@ RSpec.describe(::PaperTrail, versioning: true) do end end - context ".versions_between" do + describe ".versions_between" do before do @created = 30.days.ago @first_update = 15.days.ago diff --git a/spec/paper_trail/serializers/custom_yaml_serializer_spec.rb b/spec/paper_trail/serializers/custom_yaml_serializer_spec.rb index 03d3668f..fd2c5e30 100644 --- a/spec/paper_trail/serializers/custom_yaml_serializer_spec.rb +++ b/spec/paper_trail/serializers/custom_yaml_serializer_spec.rb @@ -29,7 +29,7 @@ RSpec.describe CustomYamlSerializer do } } - context(".load") do + describe ".load" do it("deserializes YAML to Ruby, removing pairs with blank keys or values") do expect(described_class.load(word_hash.to_yaml)).to eq( word_hash.reject { |k, v| (k.blank? || v.blank?) } @@ -37,7 +37,7 @@ RSpec.describe CustomYamlSerializer do end end - context(".dump") do + describe ".dump" do it("serializes Ruby to YAML, removing pairs with nil values") do expect(described_class.dump(word_hash)).to eq( word_hash.reject { |_k, v| v.nil? }.to_yaml