spec/support/shared_examples/behaviors/serializable.rb in mixlib-versioning-1.1.0 vs spec/support/shared_examples/behaviors/serializable.rb in mixlib-versioning-1.2.1
- old
+ new
@@ -14,36 +14,36 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
-shared_examples 'serializable' do |version_strings|
- describe '#to_s' do
+shared_examples "serializable" do |version_strings|
+ describe "#to_s" do
version_strings.each do |v|
it "reconstructs the initial input for #{v}" do
- described_class.new(v).to_s.should == v
+ expect(described_class.new(v).to_s).to eq(v)
end # it
end # version_strings
end # describe
- describe '#to_semver_string' do
+ describe "#to_semver_string" do
version_strings.each do |v|
it "generates a semver version string for #{v}" do
subject = described_class.new(v)
string = subject.to_semver_string
semver = Mixlib::Versioning::Format::SemVer.new(string)
- string.should eq semver.to_s
+ expect(string).to eq semver.to_s
end # it
end # version_strings
end # describe
- describe '#to_rubygems_string' do
+ describe "#to_rubygems_string" do
version_strings.each do |v|
it "generates a rubygems version string for #{v}" do
subject = described_class.new(v)
string = subject.to_rubygems_string
rubygems = Mixlib::Versioning::Format::Rubygems.new(string)
- string.should eq rubygems.to_s
+ expect(string).to eq rubygems.to_s
end # it
end # version_strings
end # describe
end # shared_examples