Прямо сейчас мой rpsec выглядит так:
describe Ability do
before(:each) do
end
describe 'xxx' do
it "should xxx" do
end
it "should xxx" do
end
end
describe 'xxx' do
it "should xxx" do
end
it "should xxx" do
end
end
describe 'xxx' do
it "should xxx" do
end
it "should xxx" do
end
end
describe 'xxx' do
it "should xxx" do
end
it "should xxx" do
end
end
end
Есть ли способ определить перед каждым только один из описывающих блоков? Примерно так:
describe Ability do
before(:each) do
end
describe 'xxx' do
it "should xxx" do
end
it "should xxx" do
end
end
describe 'xxx' do
it "should xxx" do
end
it "should xxx" do
end
end
describe 'xxx' do
it "should xxx" do
end
it "should xxx" do
end
end
describe 'xxx' do
before(:each) do
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
end
it "should xxx" do
end
it "should xxx" do
end
end
end
Спасибо