facelessuser wrote:Did you restart ST2 after installing? Also, please list how you installed it.
facelessuser wrote:Have you verified it actually updated? ...it should no longer have BracketHighlighter.sublime-settings, but have bh_core.sublime-settings etc. Also, please post an example of the code it isn't working in; it is working fine for me in ST2.
require_relative 'movie'
describe Movie do
before do
@init_rank = 10
@movie = Movie.new("goonies", @init_rank)
end
it "has a capitalized title" do
@movie.title.should == "Goonies"
end
it "has an initial rank" do
@movie.rank.should == @init_rank
end
context "created with a default rank" do
before do
@movie = Movie.new("goonies")
end
it "has a rank of 0" do
@movie.rank.should == 0
end
end
context "with a rank of at least 10" do
before do
@movie = Movie.new("goonies", 10)
end
it "is a hit" do
@movie.should be_hit
end
it "has a 'hit' status" do
@movie.status.should == "Hit"
end
end
context "with a rank less than 10" do
before do
@movie = Movie.new("goonies")
end
it "is a flop" do
@movie.should_not be_hit
end
it "has a 'flop' status" do
@movie.status.should == "Flop"
end
end
end// Ruby conditional statements
{
"name": "ruby",
"open": "(^\\s*\\b(?:if|case|until|unless|while|begin|class|module|def\\b\\s*[a-zA-Z_\\d]+)|do)\\b",
"close": "\\b(end)\\b",
"style": "default",
"scope_exclude": ["string", "comment"],
"plugin_library": "bh_modules.rubykeywords",
"language_filter": "whitelist",
"language_list": ["Ruby", "Ruby on Rails", "HTML (Rails)"],
"enabled": true
},
facelessuser wrote:...but copying the code into a ruby file, it worked fine. I imagine your rspec files are not using the ruby sytanx highlighter but some other rspec syntax highlighter? If so, you need to add the appropriate syntax highlighter to your ruby config object in bh_core.sublime-settings
Return to Plugin Announcements
Users browsing this forum: No registered users and 4 guests