Compiler bug when using sample
The following code produces a compiler bug.
require "spectator"
require "sqlite3"
class Foobar
def initialize
DB.open("sqlite3://foobar.db").exec("INSERT INTO options (key, value) VALUES (?, ?)", "foobar", "foobar")
end
end
Spectator.describe Foobar do
describe "" do
sample [""] do |n|
it "" do
expect(described_class.new).to be_truthy
end
end
end
end
Removing the DB usage or sample resolves the issue.