diff options
author | Austin Ziegler <austin@zieglers.ca> | 2021-12-23 10:44:44 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2022-07-04 20:26:10 -0400 |
commit | f85ec381137c6838600b16c353ff9dba3a05452c (patch) | |
tree | 7a2718961e97c56d4c70dc0a6ebe6b17aee005fc /spec/change_spec.rb | |
parent | ef23b66e9a495206f2bf1cd9ce0df50d363d26ef (diff) | |
download | diff-lcs-f85ec381137c6838600b16c353ff9dba3a05452c.tar.gz |
standardrb --only Style/StringLiterals --fix
Diffstat (limited to 'spec/change_spec.rb')
-rw-r--r-- | spec/change_spec.rb | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/spec/change_spec.rb b/spec/change_spec.rb index b8d3443..237f621 100644 --- a/spec/change_spec.rb +++ b/spec/change_spec.rb @@ -1,10 +1,10 @@ # frozen_string_literal: true -require 'spec_helper' +require "spec_helper" describe Diff::LCS::Change do - describe 'an add' do - subject { described_class.new('+', 0, 'element') } + describe "an add" do + subject { described_class.new("+", 0, "element") } it { should_not be_deleting } it { should be_adding } it { should_not be_unchanged } @@ -13,8 +13,8 @@ describe Diff::LCS::Change do it { should_not be_finished_b } end - describe 'a delete' do - subject { described_class.new('-', 0, 'element') } + describe "a delete" do + subject { described_class.new("-", 0, "element") } it { should be_deleting } it { should_not be_adding } it { should_not be_unchanged } @@ -23,8 +23,8 @@ describe Diff::LCS::Change do it { should_not be_finished_b } end - describe 'an unchanged' do - subject { described_class.new('=', 0, 'element') } + describe "an unchanged" do + subject { described_class.new("=", 0, "element") } it { should_not be_deleting } it { should_not be_adding } it { should be_unchanged } @@ -33,8 +33,8 @@ describe Diff::LCS::Change do it { should_not be_finished_b } end - describe 'a changed' do - subject { described_class.new('!', 0, 'element') } + describe "a changed" do + subject { described_class.new("!", 0, "element") } it { should_not be_deleting } it { should_not be_adding } it { should_not be_unchanged } @@ -43,8 +43,8 @@ describe Diff::LCS::Change do it { should_not be_finished_b } end - describe 'a finished_a' do - subject { described_class.new('>', 0, 'element') } + describe "a finished_a" do + subject { described_class.new(">", 0, "element") } it { should_not be_deleting } it { should_not be_adding } it { should_not be_unchanged } @@ -53,8 +53,8 @@ describe Diff::LCS::Change do it { should_not be_finished_b } end - describe 'a finished_b' do - subject { described_class.new('<', 0, 'element') } + describe "a finished_b" do + subject { described_class.new("<", 0, "element") } it { should_not be_deleting } it { should_not be_adding } it { should_not be_unchanged } @@ -63,27 +63,27 @@ describe Diff::LCS::Change do it { should be_finished_b } end - describe 'as array' do - it 'should be converted' do - action, position, element = described_class.new('!', 0, 'element') - expect(action).to eq '!' + describe "as array" do + it "should be converted" do + action, position, element = described_class.new("!", 0, "element") + expect(action).to eq "!" expect(position).to eq 0 - expect(element).to eq 'element' + expect(element).to eq "element" end end end describe Diff::LCS::ContextChange do - describe 'as array' do - it 'should be converted' do + describe "as array" do + it "should be converted" do action, (old_position, old_element), (new_position, new_element) = - described_class.new('!', 1, 'old_element', 2, 'new_element') + described_class.new("!", 1, "old_element", 2, "new_element") - expect(action).to eq '!' + expect(action).to eq "!" expect(old_position).to eq 1 - expect(old_element).to eq 'old_element' + expect(old_element).to eq "old_element" expect(new_position).to eq 2 - expect(new_element).to eq 'new_element' + expect(new_element).to eq "new_element" end end end |