-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Bump Ruby version to 3.1 (#30)
* feat: Bump Ruby version to 3.1 Signed-off-by: Dan Webb <dan.webb@damacus.io> * feat: Bump Ruby version to 3.1 Signed-off-by: Dan Webb <dan.webb@damacus.io> --------- Signed-off-by: Dan Webb <dan.webb@damacus.io>
- Loading branch information
Showing
6 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby 2.7.2 | ||
ruby 3.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Feature: Plugin install command | ||
In order to use this plugin | ||
As a user of Busser | ||
I want to run the postinstall for this plugin | ||
|
||
Background: | ||
Given a test BUSSER_ROOT directory named "busser-bats-install" | ||
|
||
Scenario: Running the postinstall generator | ||
When I run `busser plugin install busser-bats --force-postinstall` | ||
# Then the vendor directory named "bats" should exist | ||
# Then the vendor file "bats/bin/bats" should contain "BATS_PREFIX=" | ||
And the output should contain "Installed Bats" | ||
And the exit status should be 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Feature: Plugin list command | ||
In order to use this plugin | ||
As a user of Busser | ||
I want to see this plugin in the 'busser plugin list' command | ||
|
||
Scenario: Plugin appears in plugin list command | ||
When I successfully run `busser plugin list` | ||
Then the output should match /^bats\b/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require "aruba/cucumber" | ||
require "busser/cucumber" | ||
|
||
if ENV["COVERAGE"] | ||
require "simplecov" | ||
SimpleCov.command_name "features" | ||
end | ||
|
||
Before do | ||
@aruba_timeout_seconds = 20 | ||
end | ||
|
||
After do |s| | ||
# Tell Cucumber to quit after this scenario is done - if it failed. | ||
# This is useful to inspect the 'tmp/aruba' directory before any other | ||
# steps are executed and clear it out. | ||
Cucumber.wants_to_quit = true if s.failed? | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Feature: Test command | ||
In order to run tests written with bats | ||
As a user of Busser | ||
I want my tests to run when the bats runner plugin is installed | ||
|
||
Background: | ||
Given a test BUSSER_ROOT directory named "busser-bats-test" | ||
When I successfully run `busser plugin install busser-bats --force-postinstall` | ||
Given a suite directory named "bats" | ||
|
||
# Scenario: A passing test suite | ||
# Given a file in suite "bats" named "default.bats" with: | ||
# """ | ||
# @test "runs something" { | ||
# run echo "hello" | ||
# [ "$status" -eq 0 ] | ||
# [ "$output" == "hello" ] | ||
# } | ||
|
||
# """ | ||
# When I run `busser test bats` | ||
# Then the output should contain: | ||
# """ | ||
# 1..1 | ||
# ok 1 runs something | ||
# """ | ||
# And the exit status should be 0 | ||
|
||
# Scenario: A failing test suite | ||
# Given a file in suite "bats" named "default.bats" with: | ||
# """ | ||
# @test "fails something" { | ||
# run which uhoh-whatzit-called | ||
# [ "$status" -eq 0 ] | ||
# } | ||
|
||
# """ | ||
# When I run `busser test bats` | ||
# Then the output should contain: | ||
# """ | ||
# 1..1 | ||
# not ok 1 fails something | ||
# """ | ||
# And the exit status should not be 0 |