Skip to content

rake build with Rspec-2 #3

@ddayan

Description

@ddayan

When trying to rake build...
Getting:

rake aborted!
Run gem install rspec to be able to run specs.
/Users/ddayan/git/ruby-vips/Rakefile:14

A quick fix:
Open Rakefile and
change -
require "spec"
require "spec/rake/spectask"

to -
require "rspec"
require "rspec/core/rake_task"

Now it will work:

/Users/ddayan/git/ruby-vips/Rakefile:20

  • Spec is deprecated.
  • RSpec is the new top-level module in RSpec-2

DEPRECATION WARNING: you are using deprecated behaviour that will
be removed from a future version of RSpec.

/Users/ddayan/git/ruby-vips/Rakefile:20

  • Spec::Rake::SpecTask is deprecated.
  • please use RSpec::Core::RakeTask instead.
    Successfully built RubyGem
    Name: ruby-vips
    Version: 0.1.0
    File: ruby-vips-0.1.0.gem

It works! But I guess that rspec support should be updated :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions