Skip to content

Commit

Permalink
Use correct constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Nov 10, 2021
1 parent d69e648 commit 809c726
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions spec/fpm/package/snap_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
end

it "should have a default output usable as a filename" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
# This is the default filename commonly produced by snapcraft
insist { subject.to_s } == "name_123-100_all.snap"
end
Expand All @@ -36,7 +36,7 @@
end

it "should not include iteration if it is nil" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
# This is the default filename commonly produced by snapcraft
expect(subject.to_s).to(be == "name_123_all.snap")
end
Expand Down Expand Up @@ -93,32 +93,32 @@
end

it "should have the correct name" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.name } == original.name
end

it "should have the correct version" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.version } == original.version
end

it "should have the correct description" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.description } == original.description
end

it "should have the correct architecture" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.architecture } == original.architecture
end

it "should have the correct apps" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.attributes[:snap_apps] } == original.attributes[:snap_apps]
end

it "should have the correct hooks" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.attributes[:snap_hooks] } == original.attributes[:snap_hooks]
end
end
Expand Down Expand Up @@ -147,38 +147,38 @@
end

it "should have the custom name" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.name } == "custom-name"
end

it "should have the custom version" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.version } == "custom-version"
end

it "should have the custom description" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.description } == "custom-summary\ncustom-description"
end

it "should have the custom architecture" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.architecture } == "custom-architecture"
end

it "should have the custom apps" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.attributes[:snap_apps] } == []
end

it "should have the custom hooks" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
insist { input.attributes[:snap_hooks] } == []
end
end

it "should support specifying confinement" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
original.attributes[:snap_confinement] = "test-confinement"

original.output(target)
Expand All @@ -188,7 +188,7 @@
end

it "should support specifying grade" do
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if is_old_ruby
pending("Ruby 1.x and 2.0.x are unsupported for Snap because it lacks Psych::safe_load") if IS_OLD_RUBY
original.attributes[:snap_grade] = "test-grade"

original.output(target)
Expand Down

0 comments on commit 809c726

Please sign in to comment.